Spring Boot thymeleaf introduces js css error 404 file not found problem
Add in application.properties:
spring.mvc.static-path-pattern=/**
spring.resources.static-locations = classpath:/templates/
Introduced in html
<script th:src="@{/jquery.js}"></script> 或
<script src="jquery.js"></script>
jquery.js is in the current directory (directory resources/templates/jquery.js, html is also in the current directory)