From 68040827e2a68eb9b5a373a1a1502c2eca97f4f4 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sun, 24 Apr 2022 19:09:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E6=96=B0alibaba/seata=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E6=97=A0=E9=9C=80=E5=A4=84=E7=90=86=E5=BE=AA=E7=8E=AF?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../env/ApplicationSeataInitializer.java | 26 ---------------------- .../src/main/resources/META-INF/spring.factories | 2 -- 2 files changed, 28 deletions(-) delete mode 100644 ruoyi-common/ruoyi-common-datasource/src/main/java/com/ruoyi/common/datasource/env/ApplicationSeataInitializer.java delete mode 100644 ruoyi-common/ruoyi-common-datasource/src/main/resources/META-INF/spring.factories diff --git a/ruoyi-common/ruoyi-common-datasource/src/main/java/com/ruoyi/common/datasource/env/ApplicationSeataInitializer.java b/ruoyi-common/ruoyi-common-datasource/src/main/java/com/ruoyi/common/datasource/env/ApplicationSeataInitializer.java deleted file mode 100644 index 28394ea..0000000 --- a/ruoyi-common/ruoyi-common-datasource/src/main/java/com/ruoyi/common/datasource/env/ApplicationSeataInitializer.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.ruoyi.common.datasource.env; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.env.EnvironmentPostProcessor; -import org.springframework.core.Ordered; -import org.springframework.core.env.ConfigurableEnvironment; - -/** - * seata 在 springboot 2.6.x 存在循环引用问题的处理 - * - * @author ruoyi - */ -public class ApplicationSeataInitializer implements EnvironmentPostProcessor, Ordered -{ - @Override - public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) - { - System.setProperty("spring.main.allow-circular-references", "true"); - } - - @Override - public int getOrder() - { - return Ordered.LOWEST_PRECEDENCE; - } -} diff --git a/ruoyi-common/ruoyi-common-datasource/src/main/resources/META-INF/spring.factories b/ruoyi-common/ruoyi-common-datasource/src/main/resources/META-INF/spring.factories deleted file mode 100644 index bdfc1f6..0000000 --- a/ruoyi-common/ruoyi-common-datasource/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,2 +0,0 @@ -org.springframework.boot.env.EnvironmentPostProcessor=\ - com.ruoyi.common.datasource.env.ApplicationSeataInitializer