This commit is contained in:
Phillip Webb
2016-02-06 14:52:03 -08:00
parent ed01ae9ebf
commit 516afcd2ca
8 changed files with 20 additions and 18 deletions

View File

@@ -98,7 +98,7 @@ import org.springframework.web.bind.annotation.RestController;
@EnableGlobalMethodSecurity(prePostEnabled = true)
@RestController
public class SampleSecureOAuth2Application {
@RequestMapping("/user")
public Principal user(Principal user) {
return user;