Hosting a single page application with spring boot
问题 So I am trying to host a Single Page Application alongside a normal REST API with spring. What this means is that all requests that goes to the normal /api/ endpoints should be handled by the respective controller and all other requests should be directed to the resources in the folder /static/built I have gotten this to work by catching all NoHandlerFoundExceptions and redirecting to either the js file or the html file. And then used a WebMvcConfigurer to map the static content. But this all