bihuisong 7 月之前
父节点
当前提交
b2ac464c13
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      zhjq-framework/src/main/java/com/zhjq/framework/config/SecurityConfig.java

+ 1 - 1
zhjq-framework/src/main/java/com/zhjq/framework/config/SecurityConfig.java

@@ -111,7 +111,7 @@ public class SecurityConfig {
                     requests.antMatchers("/login", "/register", "/captchaImage", "/appLogin").permitAll()
                     requests.antMatchers("/login", "/register", "/captchaImage", "/appLogin").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/**", "/weather/**","/app/voice/app/**").permitAll()
+                            .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**", "/weather/**","/app/voice/app/**","/system/config/configKey/**").permitAll()
                             // 除上面外的所有请求全部需要鉴权认证
                             // 除上面外的所有请求全部需要鉴权认证
                             .anyRequest().authenticated();
                             .anyRequest().authenticated();
                 })
                 })