Can't create custom query method in Spring Data Repository [duplicate]

非 Y 不嫁゛ 提交于 2019-11-28 10:22:09

You are probably naming your implementation class wrong.

Note that the naming expectations changed with Spring Data 2.0.

For < 2.0 the implementation had to be named as the final repository interface with an additional Impl suffix. See the matching reference documentation for an example.

For >= 2.0 the implementation has to be named as the custom interface with an additional Impl suffix. See the current reference documentation for an example.

Note: You don't need any of the @Repository annotations.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!