zwzw1219 2017-10-15 17:37:04 +08:00
parent 4dd1341615
commit 1d9bad150f
1 changed files with 2 additions and 2 deletions

View File

@ -44,8 +44,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
http.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS);
http.authorizeRequests()
.antMatchers(HttpMethod.GET, "/*.html", "/favicon.ico", "/**/*.html", "/**/*.css", "/**/*.js",
"/fonts/**", "/layui/**", "/img/**", "/v2/api-docs/**", "/swagger-resources/**", "/webjars/**")
.antMatchers(HttpMethod.GET, "/*.html", "/favicon.ico", "/css/**", "/js/**", "/fonts/**", "/layui/**",
"/img/**", "/v2/api-docs/**", "/swagger-resources/**", "/webjars/**", "/pages/**")
.permitAll().anyRequest().authenticated();
http.formLogin().loginPage("/login.html").loginProcessingUrl("/login")
.successHandler(authenticationSuccessHandler).failureHandler(authenticationFailureHandler);