Vue-router uses history mode, and the background is tomcat,. How to configure the background?

vue-router uses history mode, and the backend is tomcat,. How to configure the backend so that you can access url directly without reporting 404 requests? Apache and nginx are all found on the Internet. Ask for help.


refer to this

<display-name>webapp</display-name>
  <description>
     webapp
  </description>
  <error-page>  
   <error-code>404</error-code>  
   <location>/</location>  
</error-page> 
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35f1e-2bfca.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35f1e-2bfca.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?