|
@@ -11,7 +11,7 @@ public class HelloMessageService implements MessageService {
|
|
@PreAuthorize("authenticated")
|
|
@PreAuthorize("authenticated")
|
|
public String getMessage() {
|
|
public String getMessage() {
|
|
Authentication authentication = SecurityContextHolder.getContext()
|
|
Authentication authentication = SecurityContextHolder.getContext()
|
|
- .getAuthentication();
|
|
|
|
|
|
+ .getAuthentication();
|
|
return "Hello " + authentication;
|
|
return "Hello " + authentication;
|
|
}
|
|
}
|
|
}
|
|
}
|