xml配置的一个问题

sakrileg 2007-04-03 10:50:34
配置了过滤器
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

</web-app>
<filter>
<filter-name>Hello</filter-name>
<filter-class>com.qrsx.jsp.web.HelloFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>Hello</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>


为什么在filter下提示
the marked up in the document following the root element must be well formed
这个错误是什么意思 直接导致tomcat启动就报错
...全文
176 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
sakrileg 2007-04-03
  • 打赏
  • 举报
回复
汗自己一个,多谢有人帮助菜鸟
伟大的左前卫 2007-04-03
  • 打赏
  • 举报
回复
<web-app>是根节点,你的filter要放在它里面。

81,094

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧