org.springframework.data.mongodb.core.MongoTemplate]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.core.convert.support.ConversionServiceFactory.cr

  spring-data-mongo 和spring core包冲突。解决办法:

 

<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-mongodb</artifactId>
<version>1.8.2.RELEASE</version>
</dependency>

换成 spring-data-mongodb1.8的即可。
posted @ 2018-10-19 20:51  Doyourself!  阅读(3969)  评论(0)    收藏  举报