早上好!
我的Spring应用程序似乎没有检测到existsBy的预测
Caused by: org.springframework.data.mapping.PropertyReferenceException: No property existsById found for type Planet!
at org.springframework.data.mapping.PropertyPath.<init>(PropertyPath.java:77)
at org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:329)
at org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:309)
at org.springframework.data.mapping.PropertyPath.from(PropertyPath.java:272)
Run Code Online (Sandbox Code Playgroud)
存储库中的代码
public boolean existsByIdAndOwnerId(Long planetId, Integer ownerId);
提前致谢!