01.Tomcat部署vue前端
1.当Tomcat部署前端,不能F5刷新,显示404时
解决方案: 在conf/web.xml增加如下代码:
<error-page>
<error-code>404</error-code>
<location>/index.html</location>
</error-page>
1.当Tomcat部署前端,不能F5刷新,显示404时
解决方案: 在conf/web.xml增加如下代码:
<error-page>
<error-code>404</error-code>
<location>/index.html</location>
</error-page>