美文网首页
vueJS 部署刷新404

vueJS 部署刷新404

作者: 觉上云来 | 来源:发表于2020-11-19 09:04 被阅读0次

NGXIN

apache-tomcat

前端打包好的文件下添加 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>

参考文件: https://blog.csdn.net/li352558693/article/details/103554173

相关文章

网友评论

      本文标题:vueJS 部署刷新404

      本文链接:https://www.haomeiwen.com/subject/zmiciktx.html