What's the purpose of xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"? Will it work if you remove it?
本文主要是介绍Element filtername is not allowed here-web.xml version=3.0-intellij idea,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Element filtername is not allowed here-web.xml version="3.0"-intellij idea
Intellij IDEA 报错,web.xml不能添加 filter:
参见:
http://stackoverflow.com/questions/17563756/element-listener-class-not-allowed-in-my-web-xml
解决方法:
web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"
这篇关于Element filtername is not allowed here-web.xml version=3.0-intellij idea的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!