Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Vaadin, Spring Boot and static resources?

Kristian Rink
6 years ago Jan 27, 2016 9:59am
Matti Tahvonen
6 years ago Feb 03, 2016 5:51pm
Dominic Lerbs
5 years ago Jun 07, 2016 10:01am
Matti Tahvonen
5 years ago Jul 01, 2016 8:42am

Hi,

I'd suggest to put your resource to src/resources/ and then access it from classpath:

getClass().getResourceAsStream("/yourresource.xml")

cheers,
matti

Jonathan Nash
5 years ago Aug 24, 2016 9:39pm
Tom Rauchenwald
5 years ago Aug 25, 2016 9:48am

Give Vaadin 7.7 a try, it vastly improves Spring Boot integration. Themes in src/main/resources are now supported, among other things. Theme compilation also works without further configuration.

Jo Kibila
5 years ago Oct 03, 2016 8:59am
Tom Rauchenwald
5 years ago Oct 03, 2016 9:01am