Spring Boot and @ComponentScan between two jars

前端 未结 2 1212
暖寄归人
暖寄归人 2020-12-30 02:55

I have 2 projects. One is a DAL project that does CRUD operations on a neo4j DB using spring neo4j APIs . This project is packaged as a jar and included in project #2. Proje

相关标签:
2条回答
  • 2020-12-30 03:11

    Had this same issue for a short while, then @EntityScan did the trick for me, just as adviced here - Spring Boot w/ JPA: move @Entity to different package.

    Hope that helps

    0 讨论(0)
  • 2020-12-30 03:15

    The argument to @ComponentScan is a package name, and those strings aren't valid packages. Drop the .* from them; Spring scans subpackages automatically.

    0 讨论(0)
提交回复
热议问题