MongoDB Java Inserting Throws org.bson.codecs.configuration.CodecConfigurationException: Can't find a codec for class io.github.ilkgunel.mongodb.Pojo

前端 未结 8 816
渐次进展
渐次进展 2020-12-11 00:25

I\'m learning MongoDB with Java. I\'m trying to insert data to MongoDB with Java driver. I\'m doing inserting like in MongoDB tutorial and every thing is okey. But if I want

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-11 00:53

    did you check the library of mongodb. I solve this problem in this morning by change the mongodb java driver from 3.2.2 to 3.4.2. the new maven like that:

    
        org.springframework.boot
        spring-boot-starter-data-mongodb
        1.5.4.RELEASE
    
    

    have a try and response

提交回复
热议问题