柒夜~ 2021-09-15 10:51 采纳率: 0%
浏览 611

在eclipse中创建web文件后web.xml报错

在eclipse配置完tomcat10.0.5后,创建一个web文件,web.xml中web-app报错
错误是:Multiple annotations found at this line:
- cvc-attribute.3: The value '2.5' of attribute 'version' on element 'web-app' is not valid with respect to its type,
'web-app-versionType'.
- cvc-enumeration-valid: Value '2.5' is not facet-valid with respect to enumeration '[2.4]'. It must be a value
求解决方法
from the enumeration.

  • 写回答

3条回答 默认 最新

  • CSDN专家-Fay 2021-09-15 10:52
    关注

    根据错误提示是schema版本问题,可以改成3.0试试

    评论

报告相同问题?

问题事件

  • 创建了问题 9月15日