wenhongquan 1 년 전
부모
커밋
a64bd721b8
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java

+ 5 - 5
ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java

@@ -108,11 +108,11 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
                         "/profile/**"
                 ).permitAll()
                 .antMatchers("/common/upload", "/common/download/resource", "/qdtl/log/missExport").permitAll()
-                .antMatchers("/swagger-ui.html").anonymous()
-                .antMatchers("/swagger-resources/**").anonymous()
-                .antMatchers("/webjars/**").anonymous()
-                .antMatchers("/*/api-docs").anonymous()
-                .antMatchers("/druid/**").anonymous()
+//                .antMatchers("/swagger-ui.html").anonymous()
+//                .antMatchers("/swagger-resources/**").anonymous()
+//                .antMatchers("/webjars/**").anonymous()
+//                .antMatchers("/*/api-docs").anonymous()
+//                .antMatchers("/druid/**").anonymous()
                 // 除上面外的所有请求全部需要鉴权认证
                 .anyRequest().authenticated()
                 .and()