v3.8.1发布,微服务启动system提示mogodb提示错误

pull/8499/head
JEECG 2025-06-25 17:51:51 +08:00
parent 553bee57f1
commit 7848881dcb
1 changed files with 8 additions and 2 deletions

View File

@ -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;
/**
*
* Nacosdb/tables_nacos.sql
* @author zyf
* :
* 1Nacosdb/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