fengjin
2023-09-19 2bd9debe1829fdce93c62028aa97716a1cb2defe
springcloud_k8s_panzhihuazhihuishequ/zuul/src/main/java/com/panzhihua/zuul/config/SpringSecurityConfig.java
@@ -47,7 +47,7 @@
            }
        }).anyRequest().authenticated().and()
            // 配置没有权限自定义处理类
            .exceptionHandling().accessDeniedHandler(userAuthAccessDeniedHandler).and().csrf().disable();
            .exceptionHandling().accessDeniedHandler(userAuthAccessDeniedHandler).and().csrf().disable().cors();
        // 基于Token不需要session
        http.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS);
        // 禁用缓存