Jfinal-weixin web.xml出现红叉错误

发布于 2021-11-23 05:16:01 字数 6662 浏览 894 评论 0

@JFinal 你好,想跟你请教个问题:

Jfinal-weixin web.xml出现红叉错误,应如何解决?thks.

Multiple annotations found at this line:
 - cvc-complex-type.4: Attribute 'version' must appear on element 'web-app'.
 - cvc-complex-type.2.4.a: Invalid content was found starting with element 'web-app'. One of '{"http://
  java.sun.com/xml/ns/javaee":description, " http://java.sun.com/xml/ns/javaee":display-name, "http://
  java.sun.com/xml/ns/javaee":icon, " http://java.sun.com/xml/ns/javaee":distributable, " http://java.sun.com/xml/
  ns/javaee":context-param, " http://java.sun.com/xml/ns/javaee":filter, " http://java.sun.com/xml/ns/
  javaee":filter-mapping, " http://java.sun.com/xml/ns/javaee":listener, " http://java.sun.com/xml/ns/
  javaee":servlet, " http://java.sun.com/xml/ns/javaee":servlet-mapping, " http://java.sun.com/xml/ns/
  javaee":session-config, " http://java.sun.com/xml/ns/javaee":mime-mapping, " http://java.sun.com/xml/ns/
  javaee":welcome-file-list, " http://java.sun.com/xml/ns/javaee":error-page, " http://java.sun.com/xml/ns/
  javaee":jsp-config, " http://java.sun.com/xml/ns/javaee":security-constraint, " http://java.sun.com/xml/ns/
  javaee":login-config, " http://java.sun.com/xml/ns/javaee":security-role, " http://java.sun.com/xml/ns/
  javaee":env-entry, " http://java.sun.com/xml/ns/javaee":ejb-ref, " http://java.sun.com/xml/ns/javaee":ejb-local-
  ref, " http://java.sun.com/xml/ns/javaee":service-ref, " http://java.sun.com/xml/ns/javaee":resource-ref, "http://
  java.sun.com/xml/ns/javaee":resource-env-ref, " http://java.sun.com/xml/ns/javaee":message-destination-ref,
  " http://java.sun.com/xml/ns/javaee":persistence-context-ref, " http://java.sun.com/xml/ns/javaee":persistence-
  unit-ref, " http://java.sun.com/xml/ns/javaee":post-construct, " http://java.sun.com/xml/ns/javaee":pre-destroy,
  " http://java.sun.com/xml/ns/javaee":message-destination, " http://java.sun.com/xml/ns/javaee":locale-encoding-
  mapping-list}' is expected.

 

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文