diff --git a/jeecg-boot/jeecg-server-cloud/jeecg-system-cloud-start/src/main/java/org/jeecg/JeecgSystemCloudApplication.java b/jeecg-boot/jeecg-server-cloud/jeecg-system-cloud-start/src/main/java/org/jeecg/JeecgSystemCloudApplication.java index 4e37d4d8a..37c2c742f 100644 --- a/jeecg-boot/jeecg-server-cloud/jeecg-system-cloud-start/src/main/java/org/jeecg/JeecgSystemCloudApplication.java +++ b/jeecg-boot/jeecg-server-cloud/jeecg-system-cloud-start/src/main/java/org/jeecg/JeecgSystemCloudApplication.java @@ -7,7 +7,9 @@ import org.jeecg.common.util.oConvertUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.EnableAutoConfiguration; 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.cloud.openfeign.EnableFeignClients; @@ -21,14 +23,18 @@ import java.net.UnknownHostException; /** * 微服务启动类(采用此类启动项目为微服务模式) - * 注意: 需要先初始化Nacos的数据库脚本,db/tables_nacos.sql - * @author zyf + * 特别提醒: + * 1、需要先初始化Nacos的数据库脚本,db/tables_nacos.sql + * 2.需要集成mogodb请删除 exclude={MongoAutoConfiguration.class} + * + * @author jeecg * @date: 2022/4/21 10:55 */ @Slf4j @SpringBootApplication @EnableFeignClients(basePackages = {"org.jeecg"}) @EnableScheduling +@EnableAutoConfiguration(exclude={MongoAutoConfiguration.class}) public class JeecgSystemCloudApplication extends SpringBootServletInitializer implements CommandLineRunner { @Autowired