This commit is contained in:
Phillip Webb
2014-03-25 14:33:11 -07:00
parent c11d94105a
commit 44d708ef7a
9 changed files with 18 additions and 13 deletions

View File

@@ -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();