xml - WEB-XML 文件显示错误 Javaee_7.xsd 错误
问题描述
在此处输入图像描述web-xml 是在创建动态 web 项目时自动创建的,但它显示错误 请建议
'<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
解决方案
您缺少结束标签
<?xml version="1.0" encoding="UTF-8"?>
<web-app
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
id="WebApp_ID" version="3.1">
</web-app>
推荐阅读
- php - 如何获取 single.php pod 页面的模板文件?
- python - Python中的科学记数法格式
- python - 比较列表中元组的元素
- iis - 重定向 Web.Config 中的 URL 列表
- javascript - 通过正则表达式用输入替换单词
- python - AttributeError: 模块 'seaborn' 没有属性 'lineplot' - 已经更新到 0.9.0
- react-native - 地图框不适用于expo react native,有什么替代方法?
- javascript - 如何使用 jQuery 向对象添加径向/复选框值?
- asp.net-mvc - 获取 PowerBI Embedded 的 Azure PowerBI 容量的授权代码
- javascript - 从一个对象在反应 js 中创建一个选择选项