spring boot 启动时候报错mongodb

spring boot 启动时候报错mongodb

解决办法:

1.在pom.xml中删除这个

<dependency>

         <groupId>org.springframework.boot</groupId>

         <artifactId>spring-boot-starter-data-mongodb</artifactI>

      </dependency>

2.或者在启动类中加

@SpringBootApplication(exclude =MongoAutoConfiguration.class) 

问题就解决了

 




相关文章:

  • 2021-09-08
  • 2022-02-05
  • 2022-02-12
  • 2021-08-09
  • 2021-11-26
  • 2021-05-11
  • 2021-12-07
  • 2021-05-17
猜你喜欢
  • 2022-12-23
  • 2022-03-07
  • 2022-12-23
  • 2021-08-13
  • 2022-01-11
  • 2021-11-12
相关资源
相似解决方案