原文:解決 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