He usado lo siguiente en pom.xml
<dependency> <groupId>org.webjars</groupId> <artifactId>bootstrap</artifactId> <version>5.1.3</version> </dependency> <dependency> <groupId>org.webjars</groupId> <artifactId>jquery</artifactId> <version>3.6.0</version> </dependency> <dependency> <groupId>org.webjars</groupId> <artifactId>webjars-locator-core</artifactId> </dependency> Bootstrap funciona bien, pero este <script th:src="@{/webjars/bootstrap/js/bootstrap.bundle.min.js}"></script> no funciona, excepto que agrego manualmente bootstrap/js/bootstrap.bundle.min.js a mi carpeta estática.
¿Cómo puedo usar webjar exclusivamente para lograr lo mismo sin agregar manualmente la carpeta de origen a mi estructura de carpetas estáticas?