Commit a549b178 authored by maliang's avatar maliang

蓝湾博阅广告投放数据系统

parent f8a7c4fc
...@@ -52,7 +52,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { ...@@ -52,7 +52,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
// 基于token,所以不需要session // 基于token,所以不需要session
http.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS); http.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS);
//authorizeRequests获取配置请求授权的相关配置类,antMatchers设置哪些请求需要认证,authenticated设置需要请求的请求类型是post,.permitAll().anyRequest()表示出了前面设置的请求任意用户任何请求都可访问
http.authorizeRequests() http.authorizeRequests()
.antMatchers("/", "/*.html", "/favicon.ico", "/css/**", "/js/**", "/fonts/**", "/layui/**", "/img/**", .antMatchers("/", "/*.html", "/favicon.ico", "/css/**", "/js/**", "/fonts/**", "/layui/**", "/img/**",
"/v2/api-docs/**", "/swagger-resources/**", "/webjars/**", "/pages/**", "/druid/**", "/v2/api-docs/**", "/swagger-resources/**", "/webjars/**", "/pages/**", "/druid/**",
......
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