I have used the following in 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 is working fine but this <script th:src="@{/webjars/bootstrap/js/bootstrap.bundle.min.js}"></script> is not working except I manually add the bootstrap/js/bootstrap.bundle.min.js to my static folder.
How can I used webjar exclusively to achieve the same without manually adding adding the source folder to my static folder structure.