using thymeleaf之一thymeleaf认识
来源:互联网 发布:网络管理与通信软件 编辑:程序博客网 时间:2024/05/29 07:42
目前,国内thymeleaf中文资料很少,很惊喜做第一个吃螃蟹的人。
1.thymeleaf认识
1.1介绍一下什么是thymeleaf
thymeleaf是基于java的模板引擎,支持xml/xhtml/html5。
1.2thymeleaf解析原理
lthymeleaf在指定的模式下处理文件之前会首先将文件转换为格式良好的XML文件,而此XML文件仍然是完全有效的HTML5.
l解析xml方式为SAX.所以web页面要求严格格式,一定要有封闭标签:/> 或 </>
1.3 it looks like this:<!DOCTYPE html><html xmlns:th="http://www.thymeleaf.org"><head><meta charset="UTF-8" /><title th:text="${welcome}">thymeleaf</title><script type="text/javascript" th:src="@{/webjars/jquery/1.11.1/jquery.min.js}"></script></head><script th:inline="javascript">/*<![CDATA[*//*]]>*/</script><body th:inline="text"><div><ol><li><a th:href="@{/operator-page}" target="_blank">算术运算符</a></li><li><a th:href="@{/operator-equal-page}" target="_blank">比较和相等运算符</a></li><li><a th:href="@{/operator-boolean-page}" target="_blank">布尔运算符</a></li></ol></div></body></html>
1 0
- using thymeleaf之一thymeleaf认识
- Thymeleaf
- thymeleaf
- thymeleaf
- Thymeleaf
- Thymeleaf
- Thymeleaf
- Thymeleaf
- Thymeleaf
- Thymeleaf
- Thymeleaf
- using thymeleaf之三文字
- using thymeleaf之十一内联
- using thymeleaf之二简单表达式
- using thymeleaf之四操作符
- using thymeleaf之五条件表达式
- using thymeleaf之九属性优先级
- using thymeleaf之十模板注释
- 模拟赛 警察叔叔就是这个人!
- 产生任意随机数发生器
- OAuth的机制原理讲解
- 取硬币问题最优策略
- leetcode :Find Minimum in Rotated Sorted Array
- using thymeleaf之一thymeleaf认识
- Winpcap网络编程八之Winpcap学习教程,发包,发包!
- FZU 2086 餐厅点餐(枚举)
- 反编译unity3d发布apk
- 21根火柴游戏(保证电脑胜利)
- HDU2552 三足鼎立 【数学推理】
- spoj 1470——Another Sequence Problem(Splay Tree)
- 关于ListView中异步加载图片时,图片显示错误的问题
- UVA-11129 - An antiarithmetic permutation (分治)