springboot加載非靜態頁面怎么做?
?<div class="layui-tab-item layui-show">
? ? ? ? ? ? ? ? <iframe src="welcome.html" frameborder="0" scrolling="yes" class="x-iframe"></iframe>?
</div>
比如我在templates文件夾下加載,同一文件夾下另一個非靜態頁面資源welcome.html,無法訪問,只有把頁面放到static文件夾下才能訪問,所以怎么能加載welcome.html,而又不讓他變成靜態文件。
2018-01-04
pom文件中添加thymeleaf的依賴
所有html文件放在/resources目錄下
所有css js那些放在/resources的static目錄下
appkication.properyies文件中配置
齊活
controller直接返回文件名即可