How to solve the problem that static resources of Spring Boot VUE single page application are overwritten by controller routing

as shown in the figure

clipboard.png

I created a route for a fan domain name. Parsing all requests directly opens the same vue single page; then parse the specific route through vue-router .

due to the need to verify the login authorized by Wechat, all can only be implemented using spring related methods.

problems with the current project:

all static resource accesses are parsed by the @ GetMapping paradigm, and static resources cannot be returned directly.

are there any great gods to answer the following questions? And give a solution? For example:
routing regular expression masking?
filter?
AOP?


so that static resources also return index page, you should need to judge that static resources do not return index.

Menu