I'm building a web app using spring boot
, vaadin
, and some static html pages (ui frameworks like bootstrap).
I want to have both Vaadin
routes and static html pages in my project.
The static pages is just a basic index.html
page which includes some css
and js
.
1) If i place the index.html
in the webapp folder, it's accessible from the www.localhost:8080/
url, but then i got error from vaadin, saying :
the back-end doesn't accept POST requests to www.localhost:8080/
(because vaadin actually sends POST requests to that url)
2) If i add a @Route("")
class, then the index.html
is no lounger accessible, but then the back-end accepts the POST requests from the vaadin client...
3) I have no clue how to import static html to a @Route
class. (no way with @HtmlImport)
Any Idea ?