【问题标题】:spring dependency maven multi modulespring依赖maven多模块
【发布时间】:2012-09-17 14:20:42
【问题描述】:

我的项目有以下结构:-

parent POM 
|-- app-core
|-- app-model
|-- app-services
`-- app-web

app-core : 在 Springs

应用服务:在 球衣休息

*app-services 使用 app-core.jar*

问题:如果我将 spring-dependencies 添加到我的应用程序核心,应用程序服务如何访问applicationContext.xml。我是否还需要将 spring-dependencies 添加到我的 app-services 模块中??

【问题讨论】:

    标签: spring maven maven-3


    【解决方案1】:

    只需在 app-services 的 pom 中添加 app-core 作为 maven 依赖项,您就可以将 applicationContext.xml 作为 classpath:applicationContext.xml 访问。

    【讨论】:

      猜你喜欢
      • 2019-08-21
      • 2014-11-18
      • 2014-09-09
      • 2014-04-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-25
      • 1970-01-01
      相关资源
      最近更新 更多