文章詳情頁
淺談spring boot使用thymeleaf版本的問題
瀏覽:6日期: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>
以上為個人經驗,希望能給大家一個參考,也希望大家多多支持好吧啦網。
標簽:
Spring
相關文章:
1. Google和Facebook不使用Docker的原理解析2. django rest framework serializers序列化實例3. Django models文件模型變更錯誤解決4. 探究Android客戶端網絡預連接優化機制5. Django REST 異常處理詳解6. 利用django model save方法對未更改的字段依然進行了保存7. 在vue中封裝方法以及多處引用該方法詳解8. 如何解決 Ubuntu 中文亂碼問題——文本、MP3和Rar壓縮文件及aMule9. Spring注解實現自動裝配過程解析10. Spring boot基于ScheduledFuture實現定時任務
排行榜
