Parcourir la source

设置不拦截路径

yq il y a 3 ans
Parent
commit
3d97d4ae9d

+ 3 - 1
src/main/java/com/usky/dxtop/framework/config/SecurityConfig.java

@@ -98,7 +98,9 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
                 // 过滤请求
                 .authorizeRequests()
                 // 对于登录login 注册register 验证码captchaImage 允许匿名访问
-                .antMatchers("/login", "/register", "/captchaImage","/top/notify","/dxtop/order/topScanPayApi","/loginApi").anonymous()
+                .antMatchers("/login", "/register", "/captchaImage","/top/notify","/dxtop/order/topScanPayApi","/loginApi",
+                        "/dxtop/charge/page","/dxtop/dish/page"
+                        ).anonymous()
                 .antMatchers(
                         HttpMethod.GET,
                         "/",