spring-native icon indicating copy to clipboard operation
spring-native copied to clipboard

Help webjars locator to find assets in /META-INF/resources/webjars

Open dsyer opened this issue 4 years ago • 1 comments

The webjars locator is really nice, and is configured automatically in Spring Boot, but it doesn't work in a native image because there is no directory traversal on the classpath (same problem with @ComponentScan). Maybe we can fix this in a similar way to @ComponentScan - the paths it scans are well defined and easy to discover. If we scan them at build time we can probably use a substitution at runtime to pick the right location, instead of trying to scan and failing. (See also https://github.com/oracle/graal/issues/1108.)

dsyer avatar Jun 05 '20 06:06 dsyer

We could maybe use a similar build time transformation than the one described in #374.

sdeleuze avatar Nov 25 '20 16:11 sdeleuze

See https://github.com/spring-projects/spring-framework/issues/27619.

sdeleuze avatar Jan 02 '23 12:01 sdeleuze