Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Configuration
- @EnableResourceServer
- protected static class ResourceServerConfiguration extends
- ResourceServerConfigurerAdapter {
- @Override
- public void configure(ResourceServerSecurityConfigurer resources) {
- resources.resourceId(RESOURCE_ID);
- }
- @Override
- public void configure(HttpSecurity http) throws Exception {
- http
- .authorizeRequests()
- .antMatchers("/rest/about").permitAll()
- .antMatchers("/rest/**").authenticated()
- ;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement