No property found for type error when try to create custom repository with Spring Data JPA

两盒软妹~` 提交于 2019-11-28 04:20:45

You wrote:

the suggestions there (all in same package, naming convention) are things I'm already doing.

No you do not.

Rename you MediaBytesRepository to MediaRepositoryCustom.

And of course you need an implementation of MediaRepositoryCustom with the name MediaRepositoryImpl.

equalto

You must name your impl class as "InterfaceNameImpl". Default postfix for implementation is Impl, we can change it as we like:

<repositories base-package="com.acme.repository" repository-impl-postfix="FooBar" />

The name of custom interfaces does not matter.

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