1.3 方言:标准方言
注意:方言实际上可以没有处理器,完全由其它东西构成。但是,处理器绝对是最常见的使用案例。官方的thymeleaf-spring3和thymeleaf-spring4整合包都定义了一种称为“SpringStandard Dialect”的方言。
此种方言与标准方言基本相同,但是为了提高Spring框架里一些特性的易用性而进行了些许调整(比如,使用Spring表达式语言或者SpringEL,代替OGNL)。
所以,如果你是一名Spring MVC用户,你并非在浪费时间,你在这儿学到的东西基本上都能用在你的Spring应用里面。<form:inputText name="userName" value="${user.name}" /><input type="text" name="userName" value="James Carrot" th:value="${user.name}" />Last updated