Java 具有不同路径的相同上下文根的副作用
我有一个应用程序,它有一个上下文根,如下所示Java 具有不同路径的相同上下文根的副作用,java,servlets,web-applications,weblogic,web-deployment,Java,Servlets,Web Applications,Weblogic,Web Deployment,我有一个应用程序,它有一个上下文根,如下所示 <module id="test1"> <web> <web-uri>test1.war</web-uri> <context-root>main</context-root> </web> </module> 测试1.战争 主要的 现在我已经为一个功能创建了一个新的war,但我仍然希望从与“main”相同的上下文根开始。为什
<module id="test1">
<web>
<web-uri>test1.war</web-uri>
<context-root>main</context-root>
</web>
</module>
测试1.战争
主要的
现在我已经为一个功能创建了一个新的war,但我仍然希望从与“main”相同的上下文根开始。为什么?因为当有人使用“/main”时,会应用一些安全层
所以我做了如下,它是有效的
<module id="test1">
<web>
<web-uri>test1.war</web-uri>
<context-root>main</context-root>
</web>
</module>
<module id="test2">
<web>
<web-uri>test2.war</web-uri>
<context-root>main/test2</context-root>
</web>
</module>
测试1.战争
主要的
测试2.战争
主/测试2
我想知道是否有任何副作用,因为我用不同的路径配置了相同的上下文根,是否允许