Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2014
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. @Configuration
  2. @EnableResourceServer
  3. protected static class ResourceServerConfiguration extends
  4. ResourceServerConfigurerAdapter {
  5.  
  6. @Override
  7. public void configure(ResourceServerSecurityConfigurer resources) {
  8. resources.resourceId(RESOURCE_ID);
  9. }
  10.  
  11. @Override
  12. public void configure(HttpSecurity http) throws Exception {
  13. http
  14. .authorizeRequests()
  15. .antMatchers("/rest/about").permitAll()
  16. .antMatchers("/rest/**").authenticated()
  17. ;
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement