Last active
August 14, 2018 07:26
-
-
Save jeetprksh/b4f3f22909733c61cdfbb76abee94445 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RestController() | |
@RequestMapping("user") | |
public class UserController { | |
@Autowired | |
private UserService service; | |
@RequestMapping(value = "{userId}", method = RequestMethod.GET) | |
public @ResponseBody ServerResponse getUser(@PathVariable("userId") Long userId) { | |
return this.service.getUser(userId); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment