Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
spring依赖maven多模块_Spring_Maven_Maven 3 - Fatal编程技术网

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