tomcat7:
vi /conf/context.xml
将<Context>修改为<Context allowLinking="true">
tomcat8:
vi /conf/context.xml
在<Context>
...
</Context> 之间加入一行
<Resources allowLinking="true"></Resources>
本文指导如何在Tomcat 7和8的context.xml中启用资源链接允许链接功能,分别介绍了修改<Context>标签和添加(Resources)标签的方法,适用于对Web应用部署有需求的开发者。
tomcat7:
vi /conf/context.xml
将<Context>修改为<Context allowLinking="true">
tomcat8:
vi /conf/context.xml
在<Context>
...
</Context> 之间加入一行
<Resources allowLinking="true"></Resources>
396

被折叠的 条评论
为什么被折叠?