Procházet zdrojové kódy

swagger拦截配置

hxf před 2 roky
rodič
revize
be985a9dc2

+ 1 - 0
neim-system/src/main/java/com/jiayue/framework/config/SecurityConfig.java

@@ -104,6 +104,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
                 .antMatchers("/swagger-resources/**").anonymous()
                 .antMatchers("/webjars/**").anonymous()
                 .antMatchers("/*/api-docs").anonymous()
+                .antMatchers("/dataQuery/**").anonymous()
                 .antMatchers("/druid/**").anonymous()
                 .antMatchers("/actuator/**").anonymous()
                 // 除上面外的所有请求全部需要鉴权认证