升级到 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
- 扫码加我微信
- 验证消息请输入:来自你的博客
- 我的微信公众号
- 微信扫一扫与我交流吧
评论