Autowiring fails: Not an managed Type

前端 未结 13 2121
清酒与你
清酒与你 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 13:00

    In spring boot I get same exception by using CrudRepository because I forgot to set generic types. I want to write it here in case it helps someone.

    errorneous definition:

    public interface OctopusPropertiesRepository extends CrudRepository
    

    error:

    Caused by: java.lang.IllegalArgumentException: Not a managed type: class java.lang.Object
    

    successfull definition:

    public interface OctopusPropertiesRepository extends CrudRepository{
    

提交回复
热议问题