使用時出現以下錯誤(https://github.com/pramoth/specification-with-projection)
Caused By: org.springframework.data.mapping.PropertyReferenceException: No property findOne found for type <Entity class>
知道為什么拋出這個例外嗎?
uj5u.com熱心網友回復:
看起來您使用的 Spring Data 版本不正確。
該庫僅適用于舊版本。合并了支持新 Spring Data 的最后更改,但尚未發布。
您可以嘗試使用此處的最新版本 https://mvnrepository.com/artifact/th.co.geniustree.springdata.jpa/specification-with-projections
也許它會起作用。
我還有一個庫的分支,支持最新的 Spring Boot 版本和 Java 17。它可以在庫的最新版本發布之前臨時使用
https://github.com/v-ladynev/specification-with-projection-embeded
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/536400.html
上一篇:Spring自定義配置注解
