SpringBoot使用MongoDB启动报错:Failed to determine a suitable driver class

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

exclude = DataSourceAutoConfiguration.class

版权声明:本文为qq_37054816原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。