|
|
|
@ -128,13 +128,14 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { |
|
|
|
|
) |
|
|
|
|
.permitAll() |
|
|
|
|
|
|
|
|
|
// TODO: 2023/6/5 生产需关闭 knife4j 授权
|
|
|
|
|
.antMatchers("/swagger-ui.html").anonymous() |
|
|
|
|
.antMatchers("/doc.html").anonymous() |
|
|
|
|
.antMatchers("/swagger-resources/**").anonymous() |
|
|
|
|
.antMatchers("/*/api-docs").anonymous() |
|
|
|
|
.antMatchers("/webjars/**").anonymous() |
|
|
|
|
.antMatchers("/druid/**").anonymous() |
|
|
|
|
// TODO: 2023/6/5 生产需关闭 knife4j 授权
|
|
|
|
|
// TODO: 关闭授权
|
|
|
|
|
// .antMatchers("/swagger-ui.html").anonymous()
|
|
|
|
|
// .antMatchers("/doc.html").anonymous()
|
|
|
|
|
// .antMatchers("/swagger-resources/**").anonymous()
|
|
|
|
|
// .antMatchers("/*/api-docs").anonymous()
|
|
|
|
|
// .antMatchers("/webjars/**").anonymous()
|
|
|
|
|
// .antMatchers("/druid/**").anonymous()
|
|
|
|
|
|
|
|
|
|
// 除上面外的所有请求全部需要鉴权认证
|
|
|
|
|
.anyRequest().authenticated() |
|
|
|
|