Caused by: org.springframework.data.mapping.PropertyReferenceException: No property id found for type Users!

Spring Data JPA自定义Repository


Caused by: org.springframework.data.mapping.PropertyReferenceException: No property id found for type Users!

 

排错方案:

1.  比我这个名字就不一致了,导致它解析不到实体类。

 

2. 要跟自己实体类里面的字段一致,否则解析不到

 

 

posted @ 2019-11-13 10:41  Arebirth  阅读(...)  评论(... 编辑 收藏