Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的本地上下文是 /123,我的工作伙伴上下文是 /456,当运行简单的 HTML 请求时,例如 img src=/images,我们希望它可以在我们的共享项目中工作。目前,该 img 标签将请求 localhost:8080/images 而不是 localhost:8080/[our-context]/images
我们还需要它与 Javascript 等一起使用,有没有简单的方法解决这个问题?
干杯!
在 Tomcat 6 及更高版本中,全局库位于 TOMCAT_HOME/lib 文件夹中。参考这个问题 试试这样。我不确定结果。
你能解释你的问题吗?如果你让它更具描述性,你会得到更多的答案。
看到这个链接