Reformat code use Eclipse Mars
This commit is contained in:
@@ -36,9 +36,9 @@ public class SampleSecureApplication implements CommandLineRunner {
|
||||
|
||||
@Override
|
||||
public void run(String... args) throws Exception {
|
||||
SecurityContextHolder.getContext().setAuthentication(
|
||||
new UsernamePasswordAuthenticationToken("user", "N/A", AuthorityUtils
|
||||
.commaSeparatedStringToAuthorityList("ROLE_USER")));
|
||||
SecurityContextHolder.getContext()
|
||||
.setAuthentication(new UsernamePasswordAuthenticationToken("user", "N/A",
|
||||
AuthorityUtils.commaSeparatedStringToAuthorityList("ROLE_USER")));
|
||||
try {
|
||||
System.out.println(this.service.secure());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user