|
|
@ -114,9 +114,11 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
|
|
|
|
.antMatchers("/login", "/register", "/captchaImage").permitAll()
|
|
|
|
.antMatchers("/login", "/register", "/captchaImage").permitAll()
|
|
|
|
// 静态资源,可匿名访问
|
|
|
|
// 静态资源,可匿名访问
|
|
|
|
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
|
|
|
|
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
|
|
|
|
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**","/pt/**","/gateway/event/event/eventData/**","/gateway/event/event/eventData/eventProgress/**").permitAll()
|
|
|
|
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
|
|
|
|
.antMatchers("/remoteCall/**").anonymous()
|
|
|
|
// .antMatchers("/remoteCall/**").anonymous()
|
|
|
|
.antMatchers("/common/**").anonymous()
|
|
|
|
// .antMatchers("/pt/**").anonymous()
|
|
|
|
|
|
|
|
// .antMatchers("/gateway/event/event/eventData/**").anonymous()
|
|
|
|
|
|
|
|
// .antMatchers("/gateway/event/event/eventData/eventProgress/**").anonymous()
|
|
|
|
// 除上面外的所有请求全部需要鉴权认证
|
|
|
|
// 除上面外的所有请求全部需要鉴权认证
|
|
|
|
.anyRequest().authenticated()
|
|
|
|
.anyRequest().authenticated()
|
|
|
|
.and()
|
|
|
|
.and()
|
|
|
|