Spring Boot使用MongoDB启动时,报出异常“Failed to determine a suitable driver class”
解决方法:
在是springboot的启动类的注解@SpringBootApplication中加入如下属性,
exclude = DataSourceAutoConfiguration.class
Spring Boot使用MongoDB启动时,报出异常“Failed to determine a suitable driver class”
解决方法:
在是springboot的启动类的注解@SpringBootApplication中加入如下属性,
exclude = DataSourceAutoConfiguration.class