java 将属性“antiJARLocking”设置为“true”未找到匹配的属性
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28228132/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Setting property 'antiJARLocking' to 'true' did not find a matching property
提问by BornForJava
My context.xml file:
我的 context.xml 文件:
<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/candy"/>
How can i get rid of this warning? My project is running on Netbeans and Tomcat 8.0.9: Setting property 'antiJARLocking' to 'true' did not find a matching property
我怎样才能摆脱这个警告?我的项目在 Netbeans 和 Tomcat 8.0.9 上运行: 将属性“antiJARLocking”设置为“true”没有找到匹配的属性
采纳答案by GreyBeardedGeek
Remove the attribute from the context.xml file. Tomcat does not support it.
从 context.xml 文件中删除该属性。Tomcat 不支持它。
回答by George
antiJARLocking is an attribute in Tomcat 7, which has been removed in Tomcat 8.
antiJARLocking 是Tomcat 7 中的一个属性,在 Tomcat 8 中已被移除。
So, for Tomcat 8, just use antiResourceLocking.
因此,对于Tomcat 8,只需使用 antiResourceLocking。
https://tomcat.apache.org/tomcat-7.0-doc/config/context.html
https://tomcat.apache.org/tomcat-7.0-doc/config/context.html
https://tomcat.apache.org/tomcat-8.0-doc/config/context.html
https://tomcat.apache.org/tomcat-8.0-doc/config/context.html