weixin_43795337 2020-07-08 12:27 采纳率: 0%
浏览 194
已采纳

IDEA中web.xml一旦配置了两个以上的listenter标签就报错,但是运行正常

<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
         version="4.0">

Element 'web-app' cannot have character [children], because the type's content type is element-only.

超过两个以上listener就报错
约束如上,在IDEA中的web.xml报错,但是运行不报错是怎么回事

  • 写回答

1条回答 默认 最新

  • zqbnqsdsmd 2020-08-02 11:58
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 已采纳回答 7月10日