Element filtername is not allowed here-web.xml version="3.0"-intellij idea
2016-04-05 11:49
483 查看
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"
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?
删除红色的部分即可。
相关文章推荐
- myeclipse 怎么修改中文字体大小
- 粒子滤波跟踪方法
- 基于EasyDarwin的实现无人机远程视频传输--RTSP初始化程序分析
- MegaCli 常用命令
- PHP语言解析
- 如何成为包工头
- linux中/etc与/var目录,各是什么意思?这两个目录下的文件有什么特点?
- sql修改字段长度
- nginx.conf配置文件详解2
- 使用XIB, 如何让文字随心所欲的换行
- netty实现websocket(二)----实例
- 小圆点+无限轮播
- git diff
- iOS开发之AFNetworking的使用
- python __init__.py
- PHP 操作redis 详细讲解
- Json.net/Newtonsoft 新特性JObject/Linq to Json
- java 读取类内容给指定的方法追加内容
- 告别编译运行 ---- Android Studio 2.0 Preview发布Instant Run功能
- DSP没有8位的存储单元,都是16位的