resources結構截圖如下:
1、首先需要在配置文件中加入配置:
spring.resources.static-locations=classpath:/static/
2、在html頁面中引用的地方(以引用js文件爲例)
<script type="text/javascript" th:src="@{/static/js/jquery-3.3.1.min.js}"></script>
如有錯誤歡迎批評指正!
resources結構截圖如下:
1、首先需要在配置文件中加入配置:
spring.resources.static-locations=classpath:/static/
2、在html頁面中引用的地方(以引用js文件爲例)
<script type="text/javascript" th:src="@{/static/js/jquery-3.3.1.min.js}"></script>
如有錯誤歡迎批評指正!
ActiveMQ與Spring整合項目中,首先建立Maven項目之後,引入相應的包: <dependencies> <dependency> <groupId>org.apache.