fengxiang
2018-01-04 442c65509f32c4b778dcfbf345b98d6f2111f56a
src/main/java/com/moral/security/WebSecurityConfiguration.java
@@ -49,10 +49,10 @@
    @Override
    protected void configure(HttpSecurity http) throws Exception {
      http
      .anonymous().disable()
        .authorizeRequests()
        .antMatchers("/oauth/token").permitAll();
      http.csrf().disable(); //TODO 暂时关闭CSRF
      http.anonymous().disable()
            .authorizeRequests()
            .antMatchers("/oauth/token").permitAll();
    }
    @Override