From 46fb1cce918d96a2deb9d8a4f1848910f50d0f6c Mon Sep 17 00:00:00 2001 From: JEECG <445654970@qq.com> Date: Mon, 10 Feb 2025 13:43:42 +0800 Subject: [PATCH] =?UTF-8?q?3.7.3=E7=89=88=E6=9C=AC=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E8=BF=9E=E6=8E=A5=E4=B8=8D=E4=B8=8Amongodb?= =?UTF-8?q?=20#7787?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../boot/autoconfigure/mongo/MongoAutoConfiguration.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) rename jeecg-boot/jeecg-module-system/{jeecg-system-start => jeecg-system-biz}/src/main/java/org/springframework/boot/autoconfigure/mongo/MongoAutoConfiguration.java (93%) diff --git a/jeecg-boot/jeecg-module-system/jeecg-system-start/src/main/java/org/springframework/boot/autoconfigure/mongo/MongoAutoConfiguration.java b/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/springframework/boot/autoconfigure/mongo/MongoAutoConfiguration.java similarity index 93% rename from jeecg-boot/jeecg-module-system/jeecg-system-start/src/main/java/org/springframework/boot/autoconfigure/mongo/MongoAutoConfiguration.java rename to jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/springframework/boot/autoconfigure/mongo/MongoAutoConfiguration.java index 35f30c80..b4480722 100644 --- a/jeecg-boot/jeecg-module-system/jeecg-system-start/src/main/java/org/springframework/boot/autoconfigure/mongo/MongoAutoConfiguration.java +++ b/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/springframework/boot/autoconfigure/mongo/MongoAutoConfiguration.java @@ -7,21 +7,24 @@ package org.springframework.boot.autoconfigure.mongo; import com.mongodb.MongoClientSettings; import com.mongodb.client.MongoClient; -import java.util.List; -import java.util.stream.Collectors; import org.springframework.beans.factory.ObjectProvider; import org.springframework.boot.autoconfigure.AutoConfiguration; import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; +import org.springframework.boot.autoconfigure.mongo.MongoClientFactory; import org.springframework.boot.autoconfigure.mongo.MongoClientSettingsBuilderCustomizer; import org.springframework.boot.autoconfigure.mongo.MongoProperties; +import org.springframework.boot.autoconfigure.mongo.MongoPropertiesClientSettingsBuilderCustomizer; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Primary; import org.springframework.core.env.Environment; +import java.util.List; +import java.util.stream.Collectors; + @Primary @AutoConfiguration @ConditionalOnClass({MongoClient.class})