Polish
This commit is contained in:
@@ -29,4 +29,5 @@ public class SampleDataJpaApplication {
|
||||
public static void main(String[] args) throws Exception {
|
||||
SpringApplication.run(SampleDataJpaApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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