SpringBoot2.0 整合  mongodb  启动报错

om/alibaba/druid/spring/boot/autoconfigure/DruidDataSourceAutoConfigure.class]: Invocation of init method failed; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class

解决方法 :

 我改成了1.5 的 同时 添加了 一条 依赖 

testCompile group: 'com.h2database', name: 'h2', version: '1.4.197'

问题解决了

 

查询报错   Can't find a codec for class org.bson.BsonDecimal128.

mongodb版本过低

 

相关文章:

  • 2021-08-03
  • 2022-12-23
  • 2021-05-18
  • 2021-06-13
  • 2021-10-05
  • 2022-01-18
  • 2021-06-09
  • 2021-07-06
猜你喜欢
  • 2022-12-23
  • 2021-04-28
  • 2022-01-27
  • 2021-04-07
  • 2021-07-31
  • 2022-01-06
  • 2022-12-23
相关资源
相似解决方案