Created
November 12, 2021 17:00
-
-
Save baso53/533257283be97e819a7022b65a8091f3 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("/app") | |
public class AppController { | |
@GetMapping(path = "/test") | |
public String test(Principal principal) { | |
return principal.getName(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment