From 968fef485490262d75d7fed1dcd5118ba707c374 Mon Sep 17 00:00:00 2001 From: Parker Date: Mon, 8 Aug 2022 22:06:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=B3=E9=97=AD=20Session=20=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/opsli/core/autoconfigure/conf/SecurityConfig.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SecurityConfig.java b/opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SecurityConfig.java index 84039da..09574ae 100644 --- a/opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SecurityConfig.java +++ b/opsli-base-support/opsli-core/src/main/java/org/opsli/core/autoconfigure/conf/SecurityConfig.java @@ -69,6 +69,9 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { // 关闭csrf token认证不需要csrf防护 .csrf().disable(); + // 关闭Session回话管理器 + http.sessionManagement().disable(); + // 初始化 initAuthorizeRequests this.initAuthorizeRequests(http); }