Commit 1e177357 authored by fangxinjiang's avatar fangxinjiang

代码优化-fxj

parent 5b42d5f6
...@@ -85,10 +85,10 @@ public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter { ...@@ -85,10 +85,10 @@ public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter {
@SneakyThrows @SneakyThrows
protected void configure(HttpSecurity http) { protected void configure(HttpSecurity http) {
http.addFilterBefore(getPasswordDecoderFilter(),PasswordDecoderFilter.class) http.addFilterBefore(getPasswordDecoderFilter(),PasswordDecoderFilter.class)
//.formLogin().loginPage("/token/login").loginProcessingUrl("/token/form") .formLogin().loginPage("/token/login").loginProcessingUrl("/token/form")
//.failureHandler(authenticationFailureHandler()).and().logout() .failureHandler(authenticationFailureHandler()).and().logout()
//.logoutSuccessHandler(logoutSuccessHandler()).deleteCookies("JSESSIONID").invalidateHttpSession(true) .logoutSuccessHandler(logoutSuccessHandler()).deleteCookies("JSESSIONID").invalidateHttpSession(true)
//.and() .and()
.authorizeRequests().antMatchers("/**/login","/token/**", "/actuator/**", "/mobile/**", "/oauth/token","/weixin/callback","/oauth/**", "/wxLogin").permitAll() .authorizeRequests().antMatchers("/**/login","/token/**", "/actuator/**", "/mobile/**", "/oauth/token","/weixin/callback","/oauth/**", "/wxLogin").permitAll()
.anyRequest().authenticated().and().csrf().disable(); .anyRequest().authenticated().and().csrf().disable();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment