spring依赖maven多模块
我的项目结构如下:-spring依赖maven多模块,spring,maven,maven-3,Spring,Maven,Maven 3,我的项目结构如下:- parent POM |-- app-core |-- app-model |-- app-services `-- app-web 应用核心:在弹簧中 应用程序服务:在新泽西休息区 *应用程序服务使用app-core.jar* 问题:如果我将spring依赖项添加到我的应用程序核心中,应用程序服务如何访问applicationContext.xml。我是否也需要将spring依赖项添加到我的应用程序服务模块中???只需在应用程序服务的pom中添加应用程序核心作为mav
parent POM
|-- app-core
|-- app-model
|-- app-services
`-- app-web
应用核心:在弹簧中
应用程序服务:在新泽西休息区
*应用程序服务使用app-core.jar*
问题:如果我将spring依赖项添加到我的应用程序核心中,应用程序服务如何访问
applicationContext.xml
。我是否也需要将spring依赖项添加到我的应用程序服务模块中???只需在应用程序服务的pom中添加应用程序核心
作为maven依赖项,您就可以访问应用程序上下文.xml
作为类路径:applicationContext.xml