十、属性优先级
十一、注释
11.1 <!-- ... --> 同HTML/XML的注释
...
11.2 thymeleaf解析器注释
thymeleaf解析的时候会被注释,静态打开时会显示
单行 <!--/* ... */-->
多行时:
<!--/*-->
...
...
<!--/*-->
you can see me only before thymeleaf processes me!
11.3 静态解析时被注释,thymeleaf解析时会移除<!--/*/ 和 /*/-->标签对,内容保留
hello!/*/ <div th:text="${...}"> ... </div> /*/goodbye!
这个注释在写th:block的时候很有用哦