Created
June 24, 2018 14:17
-
-
Save pubudu94/8d56f931af38556877cc1e1261161be8 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
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RequestMethod; | |
import org.springframework.web.bind.annotation.RestController; | |
import java.security.Principal; | |
@RestController | |
@RequestMapping("/") | |
public class UserRestController { | |
@RequestMapping(value = "user", method = RequestMethod.GET) | |
public Principal user(Principal user) { | |
return user; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment