I want some static resources to be served via HTTP by a vaadin14/spring-boot server.
As I understand from this blog post, there is a convention that all resources placed in META-INF/resources
(and some other places) will be served as static content (web fragments)
As an example, i place the following file in:
src/main/resources/META-INF/resources/asd.txt
and maven puts it into JAR as expected:
META-INF/resources/asd.txt
When I ask for localhost:8080/asd.txt
the results differ, depending on how the app was started:
- IDE/eclipse: works (Start the Application.main() method)
- packaged jar: the vaadin router picks up the request and thells me that there is no route available.
How do i tell vaadin/jetty (or whom ever?) to also serve this static repo when packaged?
We are using vaadin 14.7.0 with spring-boot-starter-parent 2.4.5