入门: 1.引入依赖:thymeleaf启动器 2.配置:spring.cache.enable=false 3.ctrl + shift + f9 th:text 建议使用这个 th:utext 可能导致脚本注入 th:if truethness表达式: 1.boolean true 2.数字:不为0,不为空 3.字符串:"0" null "off" "false" 4.不为空的其他类型 th:each th:object 解包 th:with 自定义变量 th:switch 分支控制 th:case th:case="*" 类似于java中的default th:href th:src th:action 动态链接 th:inline js内联 引入html片段: th:include th:insert th:replace th:fragment #strings:equals replace indexOf substring #numbers:formatDecimal #lists:isEmpty size #dates:format



