Tomcat8--allowLinking="true"

升级到tomcat8+版本后,原先项目中的软连接目录都不好用了,查了一下资料发现是配置发生了改变,

参考资料:https://tomcat.apache.org/migration-8.html

For example:

<!-- Tomcat7 -->
<Context docBase="/Users/hanqunfeng/eclipse_workspaces/luna_workspace/boss_manage/WebContent" path="/boss_manage" reloadable="false" allowLinking="true">

</Context>

 ---------------------------------------------------------------------------------------------------------------------------

<!-- Tomcat8 -->
<Context docBase="/Users/hanqunfeng/eclipse_workspaces/luna_workspace/boss_manage/WebContent" path="/boss_manage" reloadable="false">
     
      <Resources allowLinking="true" />

</Context>

猜你喜欢

转载自hanqunfeng.iteye.com/blog/2322057