原文:解决 org.bson.codecs.configuration.CodecConfigurationException: Can't find a codec for class XXX;

最近用spring data jpa操作mongo时进行查询操作时遇到该错误: 由于想直接获取到 实体类的迭代器 如:FindIterable lt User gt 使用了一下方法: template.getCollection entityInformation.getCollectionName .find entityInformation.getJavaType 出现以下错误: org.b ...

2019-05-30 14:55 1 2742 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM