xufenglei
2018-01-08 1b583e6ebb41e1c61d5c8b8c30c69211cc06e6d3
src/main/java/com/moral/security/ResourceServerConfiguration.java
@@ -27,5 +27,23 @@
            .authorizeRequests()
            .antMatchers("/test/**").permitAll()
            .and().exceptionHandling().accessDeniedHandler(new OAuth2AccessDeniedHandler());
      /*http.requestMatchers()
      .antMatchers("/screen/**")
      .and()
      .authorizeRequests()
      .antMatchers("/screen/**").permitAll()
      .and()
      .exceptionHandling()
      .accessDeniedHandler(new OAuth2AccessDeniedHandler());*/
      /*http.requestMatchers()
      .antMatchers("/mobile/**")
      .and()
      .authorizeRequests()
      .antMatchers("/mobile/**").permitAll()
      .and()
      .exceptionHandling()
      .accessDeniedHandler(new OAuth2AccessDeniedHandler());*/
   }
}