[Solved] Quasar frontend and Spring boot backend. Is it possible?

  • Hi, everybody!

    I want deploy my Quasar’s frontend on my Srping boot server. I have copied all the js and css files from dist to Spring’s “/resouces/static/…” folders according to paths from index.html. All files have been loaded. I can see it in Sources chrome panel (images, icons, css, js and others from dist and index.html template are loaded). But I get the “Sorry, nothing here…(404)” page and there is no any errors in chrome’s console.

    I can’t undetstand why this happens? It seems that everything is ok but it doesn’t work. Previously I’ve made the same to original vue.js by npm and vue-cli frontend deployment to Spring boot and everything works just great…

    Have any ideas what it could be?

    P.S. I’ve forget to notice that I even tried to add the annotation to index.html wich Spring usually use for it’s template.
    <html xmlns:th=“http://www.springframework.org/schema/mvc” xmlns=“http://www.w3.org/1999/html”>

  • @kiril4913
    I have find out why it happens. That’s pretty simple. Spring boot interpritates the “localhost/index” as “localhost” so it has to be an appropriate controller for @RequestMapping(value = “/”) handler with the “index” in return.

Log in to reply