Autowiring fails: Not an managed Type

前端 未结 13 2073
清酒与你
清酒与你 2020-12-02 12:30

I have a big problem in my diploma project and would be very glad if you guys could help me! I made a Maven Multi Module Project and have 3 \"Core-projects\"

  • <
13条回答
  •  既然无缘
    2020-12-02 12:55

    When you extend indirectly JpaRepository ( KassaRepository extends BaseRepository that extends JpaRepository) then you have to annotate BaseRepository with @NoRepositoryBean :

    @NoRepositoryBean
    public interface BaseRepository extends JpaRepository {
        T findById(long id);
    }
    

提交回复
热议问题