Skip to content

Instantly share code, notes, and snippets.

@baso53
Created November 12, 2021 17:00
Show Gist options
  • Save baso53/533257283be97e819a7022b65a8091f3 to your computer and use it in GitHub Desktop.
Save baso53/533257283be97e819a7022b65a8091f3 to your computer and use it in GitHub Desktop.
@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