No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    Framework
    1
    2
    1361
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kiril4913 last edited by Shone

      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”>

      K 1 Reply Last reply Reply Quote 0
      • K
        kiril4913 @kiril4913 last edited by

        @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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post