mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-30 22:39:06 +00:00
Polish
This commit is contained in:
+1
-1
@@ -40,7 +40,7 @@ public class SampleSecureApplication implements CommandLineRunner {
|
||||
new UsernamePasswordAuthenticationToken("user", "N/A", AuthorityUtils
|
||||
.commaSeparatedStringToAuthorityList("ROLE_USER")));
|
||||
try {
|
||||
System.out.println(service.secure());
|
||||
System.out.println(this.service.secure());
|
||||
}
|
||||
finally {
|
||||
SecurityContextHolder.clearContext();
|
||||
|
||||
Reference in New Issue
Block a user