mitao
2025-02-26 b37f92c1f5bea036b13af38d82a0fa9ca690eb3b
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);
        // 禁用缓存