maven默认web项目中的web.xml版本问题

将原来的替换为

<?xml version="1.0" encoding="UTF-8"?>
<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"
         metadata-complete="true">
</web-app>

 

 替换为webapp4.0版本和tomcat一致

posted @ 2021-02-06 20:43  阿瑶丫  阅读(166)  评论(0编辑  收藏  举报