将 属性 'antiJARLocking' 设置为 'true' 没有找到匹配的 属性

Setting property 'antiJARLocking' to 'true' did not find a matching property

我的 context.xml 文件:

 <?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/candy"/>

我怎样才能摆脱这个警告?我的项目是 运行 on Netbeans 和 Tomcat 8.0.9: 将属性'antiJARLocking'设置为'true'没有找到匹配的属性

从 context.xml 文件中删除属性。 Tomcat不支持

antiJARLocking 是 Tomcat7 中的一个属性,已在 Tomcat8 中删除。

因此,对于 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