【发布时间】:2011-08-26 06:17:09
【问题描述】:
我在 tomcat 中部署了 2 个应用程序,我想在一个项目中使用位于其他项目 WEBINF 文件夹中的资源文件。我可以访问这样的另一个项目吗?
在我的项目 A 中,我想像这样访问项目 B:
<bean id="Configuration"
class="com.ws.configuration.WebServiceConfiguration"
init-method="init">
<property name="ConfigXml" value="webserviceconfiguration.xml" />
<property name="executingPathResource" value="../../projectB/WEB-INF/" />
<property name="developmentMode" value="true" />
</bean>
注意:我使用 spring,我可以给另一个项目 web inf 文件夹的路径吗?
tnx
【问题讨论】:
-
你使用的是哪个 Tomcat 版本?
-
你指的是什么资源?
-
我编辑了你可以检查的问题
标签: java tomcat servlets jakarta-ee