The dist of vue is deployed to java webapp and the page can be accessed, but the request for non-static resources is reported to 404.

like this, I"m learning https://github.com/PanJiaChen., and then I want to publish this front end to java"s webapp and deploy it to the server
clipboard.png

404

clipboard.png


clipboard.png

.

what"s wrong with this?

Jul.09,2021

Vue Router? is used You need to use hash mode, or adjust the path matching at the backend:

ide/essentials/history-mode.html" rel=" nofollow noreferrer "> https://router.vuejs.org/zh/g.

Menu