标签:location err tomcat data xsd 3.1 isp meta web
在webapps/项目名 创建WEB-INF ,创建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_3_1.xsd"
version="3.1" metadata-complete="true">
<display-name>Router for Tomcat</display-name>
<error-page>
<error-code>404</error-code>
<location>/index.html</location>
</error-page>
</web-app>
解决vue项目route使用history模式,tomcat部署刷新url 404问题
标签:location err tomcat data xsd 3.1 isp meta web
原文地址:https://www.cnblogs.com/zipon/p/9965426.html