maven有spring-application。
我有根模块和两个内部项目模块:webapp
和utils
。
因此,在utils
中,我有@ComponentScan
注释和源代码路径。
我可以以某种方式定义webapp
中webapp
类的路径以供已使用的类使用吗?
我只需要utils模块中的源代码
答案 0 :(得分:1)
您需要在pom.xml文件的父模块中定义子模块:
<modules>
<module>module-one</module>
<module>module-two</module>
<module>module-three</module>
</modules>