解决Tomcat8+设置allowLinking不生效问题

Terwer 经验分享评论148字数 477阅读1分35秒阅读模式

升级tomcat8+ 版本后,原先项目中的软连接目录都不好用了,查了一下资料发现是配置发生了改变,文章源自浅海拾贝-https://blog.terwergreen.com/solving-tomcat8-setting-allowlinking-does-not-take-effect-1ymyti.html

参考资料:https://tomcat.apache.org/migration-8.html文章源自浅海拾贝-https://blog.terwergreen.com/solving-tomcat8-setting-allowlinking-does-not-take-effect-1ymyti.html

For example:文章源自浅海拾贝-https://blog.terwergreen.com/solving-tomcat8-setting-allowlinking-does-not-take-effect-1ymyti.html

Tomcat7文章源自浅海拾贝-https://blog.terwergreen.com/solving-tomcat8-setting-allowlinking-does-not-take-effect-1ymyti.html

<!-- Tomcat7 -->
<Context docBase="/Users/terwer/workspace/test/WebContent" path="/test" reloadable="false" allowLinking="true">
</Context>

Tomcat8​ 以上文章源自浅海拾贝-https://blog.terwergreen.com/solving-tomcat8-setting-allowlinking-does-not-take-effect-1ymyti.html

<!-- Tomcat8 -->
<Context docBase="/Users/terwer/workspace/test/WebContent" path="/test" reloadable="false" allowLinking="true">   
      <Resources allowLinking="true" />
</Context>

PS:Tomcat9​ 如果遇到设置 allowLinking="true"​ 不生效,解决办法与 Tomcat8​ 一样。文章源自浅海拾贝-https://blog.terwergreen.com/solving-tomcat8-setting-allowlinking-does-not-take-effect-1ymyti.html

相关文章
  • 扫码加我微信
  • 验证消息请输入:来自你的博客
  • weinxin
  • 我的微信公众号
  • 微信扫一扫与我交流吧
  • weinxin
Terwer
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: