Spring Boot and @ComponentScan between two jars

前端 未结 2 1277
暖寄归人
暖寄归人 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:15

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

提交回复
热议问题