master
parent
4dd1341615
commit
1d9bad150f
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue