From d4487356f0aba6b942e31f2c884acc10e7c28173 Mon Sep 17 00:00:00 2001 From: JEECG <445654970@qq.com> Date: Sun, 28 Sep 2025 22:34:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20JeecgSystemApplication.jav?= =?UTF-8?q?a=EF=BC=8C=E6=8E=92=E9=99=A4=20MongoAutoConfiguration=20?= =?UTF-8?q?=E4=BB=A5=E9=81=BF=E5=85=8D=E6=9C=AA=E9=9B=86=E6=88=90=20mongo?= =?UTF-8?q?=20=E7=9A=84=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/jeecg/JeecgSystemApplication.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jeecg-boot/jeecg-module-system/jeecg-system-start/src/main/java/org/jeecg/JeecgSystemApplication.java b/jeecg-boot/jeecg-module-system/jeecg-system-start/src/main/java/org/jeecg/JeecgSystemApplication.java index 6fc2e68a1..0fe431e2e 100644 --- a/jeecg-boot/jeecg-module-system/jeecg-system-start/src/main/java/org/jeecg/JeecgSystemApplication.java +++ b/jeecg-boot/jeecg-module-system/jeecg-system-start/src/main/java/org/jeecg/JeecgSystemApplication.java @@ -6,10 +6,10 @@ import org.jeecg.common.util.oConvertUtils; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.ImportAutoConfiguration; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; import org.springframework.context.ConfigurableApplicationContext; -import org.springframework.context.annotation.Import; import org.springframework.core.env.Environment; import java.net.InetAddress; @@ -22,9 +22,8 @@ import java.util.Map; * 报错提醒: 未集成mongo报错,可以打开启动类上面的注释 exclude={MongoAutoConfiguration.class} */ @Slf4j -@SpringBootApplication +@SpringBootApplication(exclude = MongoAutoConfiguration.class) @ImportAutoConfiguration(JustAuthAutoConfiguration.class) // spring boot 3.x justauth 兼容性处理 -//@EnableAutoConfiguration(exclude={MongoAutoConfiguration.class}) public class JeecgSystemApplication extends SpringBootServletInitializer { @Override