Loading Web Resources on Quarkus

Hello friends :slightly_smiling_face:

I’m trying to add an image to the quarkus vaadin starter project (https://github.com/vaadin/base-starter-flow-quarkus/), however, it seems that all requests are mapped to vaadin servlet (/) and so my request to static resources (/images/) are “routes not found” by vaadin and no handled by quarkus. There seems to be a “vaadin.excludeUrls” setting for spring, doing just that, would it be possible to set that in quarkus in any way?

Where did you put the resources? In a maven project, if you put it into src/main/resources/META-INF/resources/ folder they should be served correctly

vaadin.excludeUrls is a setting specific for the Vaadin Spring add-on

exactly, for example, /src/main/resources/META-INF/resources/images/logo.png should be reachable as /images/logo.png, but it doesn’t seem to work that way

I could fork the repo and build a test case if that would help

but just adding an image to the quarkus starter would already cut it :slightly_smiling_face:

also, i18n doesn’t seem to work, would love to have that added to the starter project as well

I am not at the laptop right now. I will check it later and get back to you.
BTW, can you elaborate a bit about i18n not working?
It would be helpful if you can share what you tried in an example project

sure thing, i’ll fork the quarkus starter and add both tests there

my bad with the image thing, it was on the wrong path

about the localization thing, this

https://vaadin.com/docs/latest/advanced/i18n-localization

setting this property gives me a “class not found”

I am not completely sure, but perhaps you can just annotate your class with @ApplicationScoped, without setting the property

But I may be wrong

I’ll try that, thanks