我的 context.xml 文件:
<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/candy"/>
我怎样才能摆脱这个警告?我的项目在 Netbeans 和 Tomcat 8.0.9 上运行: 将属性“antiJARLocking”设置为“true”未找到匹配的属性
最佳答案
antiJARLocking 是 Tomcat 7 中的一个属性,在 Tomcat 8 中已被删除。
因此,对于 Tomcat 8,只需使用 antiResourceLocking。
https://tomcat.apache.org/tomcat-7.0-doc/config/context.html
https://tomcat.apache.org/tomcat-8.0-doc/config/context.html
关于java - 将属性 'antiJARLocking' 设置为 'true' 没有找到匹配的属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28228132/