JavaWeb开发
cvc-id.3: A field of identity constraint ‘web-app-servlet-name-uniqueness’ matched element ‘web-app’, but this element does not have a simple type.
配置xml文件时报错
解决方法
- 将xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 中的java改成大写
- 将xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 换成新版xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
参考两篇文章
[https://blog.csdn.net/weixin_40568643/article/details/125625185?spm=1001.2101.3001.6650.2&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-2-125625185-blog-115270974.pcrelevantt0_20220926_downloadratepraise_v1&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-2-125625185-blog-115270974.pcrelevantt0_20220926_downloadratepraise_v1&utm_relevant_index=2]
[https://blog.csdn.net/qq_35091353/article/details/115270974#commentBox]