thymeleaf常用配置說明


#spring.thymeleaf.cache = true #啟用模板緩存。
#spring.thymeleaf.check-template = true #在呈現模板之前檢查模板是否存在。
#spring.thymeleaf.check-template-location = true #檢查模板位置是否存在。
#spring.thymeleaf.content-type = text / html #Content-Type值。
#spring.thymeleaf.enabled = true #啟用MVC Thymeleaf視圖分辨率。
#spring.thymeleaf.encoding = UTF-8 #模板編碼。
#spring.thymeleaf.excluded-view-names = #應該從解決方案中排除的視圖名稱的逗號分隔列表。
#spring.thymeleaf.mode = HTML5 #應用於模板的模板模式。另請參見StandardTemplateModeHandlers。
#spring.thymeleaf.prefix = classpath:/ templates / #在構建URL時預先查看名稱的前綴。
#spring.thymeleaf.suffix = .html #構建URL時附加到查看名稱的后綴。
#spring.thymeleaf.template-resolver-order = #鏈中模板解析器的順序。
#spring.thymeleaf.view-names = #可以解析的視圖名稱的逗號分隔列表。/ templates / #在構建URL時先查看名稱的前綴。
#spring.thymeleaf.suffix = .html #構建URL時附加到查看名稱的后綴。
#spring.thymeleaf.template-resolver-order = #鏈中模板解析器的順序。
#spring.thymeleaf.view-names = #可以解析的視圖名稱的逗號分隔列表。/ templates / #在構建URL時先查看名稱的前綴。
#spring.thymeleaf.suffix = .html #構建URL時附加到查看名稱的后綴。
#spring.thymeleaf.template-resolver-order = #鏈中模板解析器的順序。
#spring.thymeleaf.view-names = #可以解析的視圖名稱的逗號分隔列表。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM