Autowiring fails: Not an managed Type

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

    In my case, when using IntelliJ, I had multiple modules in the project. The main module was dependent on another module which had the maven dependencies on Spring.

    The main module had Entitys and so did the second module. But when I ran the main module, only the Entitys from the second module got recognized as managed classes.

    I then added Spring dependencies on the main module as well, and guess what? It recognized all the Entitys.

提交回复
热议问题