springboot视图解析器配置
Springboot視圖解析器配置
#spring.thymeleaf.cache = true #啟用模板緩存。
#spring.thymeleaf.check-template = true #在呈現(xiàn)模板之前檢查模板是否存在。
#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 = #應(yīng)該從解決方案中排除的視圖名稱的逗號分隔列表。
#spring.thymeleaf.mode = HTML5 #應(yīng)用于模板的模板模式。另請參見StandardTemplateModeHandlers。
#spring.thymeleaf.prefix = classpath:/ templates / #在構(gòu)建URL時預(yù)先查看名稱的前綴。
#spring.thymeleaf.suffix = .html #構(gòu)建URL時附加到查看名稱的后綴。
#spring.thymeleaf.template-resolver-order = #鏈中模板解析器的順序。
#spring.thymeleaf.view-names = #可以解析的視圖名稱的逗號分隔列表。/ templates / #在構(gòu)建URL時先查看名稱的前綴。
#spring.thymeleaf.suffix = .html #構(gòu)建URL時附加到查看名稱的后綴。
#spring.thymeleaf.template-resolver-order = #鏈中模板解析器的順序。
#spring.thymeleaf.view-names = #可以解析的視圖名稱的逗號分隔列表。/ templates / #在構(gòu)建URL時先查看名稱的前綴。
#spring.thymeleaf.suffix = .html #構(gòu)建URL時附加到查看名稱的后綴。
#spring.thymeleaf.template-resolver-order = #鏈中模板解析器的順序。
#spring.thymeleaf.view-names = #可以解析的視圖名稱的逗號分隔列表。
總結(jié)
以上是生活随笔為你收集整理的springboot视图解析器配置的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 表单(四)表单序列化
- 下一篇: 使用Python开发测试小工具-录制回放