thymeleaf 处理模板为字符串
摘要:@Autowired private SpringTemplateEngine thymeleaf; public String aa() { Context context = new Context(); context.setVariable("xx1", "xx1"); return thymeleaf.process("templateName",...
阅读全文
thymeleaf 在js中获取message信息或获取后台属性
摘要:<script th:inline="javascript"> /*<![CDATA[*/ [[#{message1}]] [[${abc}]] /*]]>*/ </script>
阅读全文
thymeleaf 获取sessionid
摘要:参考https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html
阅读全文
thymeleaf 拼接字符串与变量
摘要:参考https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html<span th:text="'The name of the user is ' + ${user.name}">
阅读全文