正文tomcat 部署 React 项目后,浏览器刷新报404问题IP云V管理员/2022-07-31/13 阅读 07/31提示:扫一扫查出行【扫一扫了解最新限行尾号】复制提示 问题:tomcat部署了react前端项目,可以正常访问,但是页面刷新就报404一、问题截图二、解决办法在tomcat 配置文件web.xml中配置如下代码:web.xml 路径: apache-tomcat-8.5\conf\web.xml<error-page> <error-code>404</error-code> <location>/index.html</location></error-page>如图: