wei.zhang2 2017-10-13 18:22:22 +08:00
parent 10732fed7e
commit 0ed9de7ec4
1 changed files with 2 additions and 2 deletions

View File

@ -21,8 +21,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests()
.antMatchers("/css/**", "/fonts/**", "/img/**", "/js/**", "/layui/**", "/statics/**", "/v2/api-docs/**",
"/swagger-resources/**", "/swagger-ui.html", "/webjars/**")
.antMatchers("/statics/**", "/v2/api-docs/**", "/swagger-resources/**", "/swagger-ui.html",
"/webjars/**")
.permitAll().anyRequest().authenticated().and().formLogin().loginProcessingUrl("/login")
.successHandler(authenticationSuccessHandler).failureHandler(authenticationFailureHandler).and()
.logout().logoutUrl("/logout").logoutSuccessHandler(logoutSuccessHandler);