文章詳情頁
淺談spring boot使用thymeleaf版本的問題
瀏覽:2日期:2023-06-27 14:36:40
spring boot使用thymeleaf版本問題
Spring boot默認使用的是thymeleaf的2版本,這個版本比較低,有些功能不支持,需要切換成3版本
在properties中加入<thymeleaf.version>3.0.9.RELEASE</thymeleaf.version><thymeleaf-layout-dialect.version>2.1.1</thymeleaf-layout-dialect.version>
<properties><thymeleaf.version>3.0.11.RELEASE</thymeleaf.version><thymeleaf-layout-dialect.version>2.1.1</thymeleaf-layout-dialect.version></properties>
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency>
以上為個人經(jīng)驗,希望能給大家一個參考,也希望大家多多支持好吧啦網(wǎng)。
標簽:
Spring
相關(guān)文章:
1. ASP動態(tài)網(wǎng)頁制作技術(shù)經(jīng)驗分享2. phpstudy apache開啟ssi使用詳解3. JSP之表單提交get和post的區(qū)別詳解及實例4. Xml簡介_動力節(jié)點Java學(xué)院整理5. 詳解瀏覽器的緩存機制6. .Net Core和RabbitMQ限制循環(huán)消費的方法7. jsp實現(xiàn)登錄驗證的過濾器8. jsp文件下載功能實現(xiàn)代碼9. ajax請求后臺得到j(luò)son數(shù)據(jù)后動態(tài)生成樹形下拉框的方法10. 存儲于xml中需要的HTML轉(zhuǎn)義代碼
排行榜
