Question from the Spring test

Get the value of `userId` in a Spring controller

Medium

How to get the value of userId?

@GetMapping("/{userId}")
public User getUser(Integer userId){
    //...
}

Author: W3D TeamStatus: PublishedQuestion passed 97 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!