當前位置:
首頁 >
前端技术
> javascript
>内容正文
javascript
【Spring Boot】【Thymeleaf】The SpringStandard Dialect
生活随笔
收集整理的這篇文章主要介紹了
【Spring Boot】【Thymeleaf】The SpringStandard Dialect
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
前言
- spring boot 2.1.1.RELEASE
- Thymeleaf 3.0
The SpringStandard Dialect
- 使用 Spring Expression Language (Spring EL or SpEL) 代替 OGNL 。${…} 和 *{…} 中的表達式使用 SpEL 解析。
- 使用 SpEL 表達式訪問所有 Spring Bean: ${@myBean.doSomething()}
- 增加新的表單屬性:th:field、th:errors和th:errorclass。為 th:object 編寫了一個新的實現,允許它用于表單命令選擇。
- 表達式對象和方法,#themes.code(...),相當于 spring:theme JSP自定義標記。
- 表達式對象和方法,#mvc.uri(…),相當于 spring:mvcUrl(...) JSP自定義函數(僅在spring4.1+中有效)。
注意,以上這些特性,必須使用 SpringTemplateEngine 作為模板引擎是才有效。
參考
https://www.thymeleaf.org/doc/tutorials/3.0/thymeleafspring.html#the-springstandard-dialect
總結
以上是生活随笔為你收集整理的【Spring Boot】【Thymeleaf】The SpringStandard Dialect的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 烟胺酸的作用
- 下一篇: 碘伏治疗灰指甲成功了是怎么回事