我正在一个使用 Spring 和 GWT 的多模块 maven2 项目中工作。假设我有两个子项目:服务和演示。“service”包含服务的实际实现,“presentation”负责为 GWT 包装它们。
我已经成功加载了 WEB-INF 目录(与 web.xml 相同)中的 Spring XML 文件,但是我遇到了应该从其他模块加载的那些 XML 文件的问题。
我的 web.xml 看起来像这样:
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:/spring-presentation.xml, classpath:/spring-services.xml
</param-value>
</context-param>
这spring-presentation.xml
是在演示项目spring-services.xml
中,在服务项目中。spring-services.xml
文件未加载。我错过了什么吗?