沈斌
2017-12-20 e1fd5f7d07a50c8682397936000f236d53f1b526
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