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

前端 未结 2 462
半阙折子戏
半阙折子戏 2020-12-07 20:24

I have a Media entity that has some basic fields for files uploaded by the user. For saving the bytes of the files uploaded, I want to create a custom repository that holds

2条回答
  •  醉梦人生
    2020-12-07 21:08

    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.

提交回复
热议问题