当前位置: 首页 > 后端技术 > Java

掌握后台应用必备技术,带你走进Thymeleaf,了解

时间:2023-04-02 00:35:57 Java

Thymeleaf是什么?Thymeleaf是一个服务器端Java模板引擎。通过在html标签中嵌入特殊的语法糖,双击html文件可以在浏览器中预览页面效果,也可以在服务器端解析处理后呈现动态页面;这对于和UI模板打交道的前端设计师来说非常友好,所见即所得。同时,对于服务端人员,只需要在html标签中嵌入语法糖,即可启用模板功能,呈现动态页面,实现了前端设计人员和后端开发人员的职责分离。Thymeleaf易学易懂,具有自己鲜明的特点,适用于后台应用和各种管理系统。动力节点Thymeleaf教程将分步详细讲解Thymeleaf模板引擎技术,全面掌握Thymeleaf模板技术,在实际项目开发中使用Thymeleaf模板技术得心应手。Thymeleaf在线学习:https://www.bilibili.com/video...Thymeleaf资料下载:http://www.bjpowernode.com/?s...Thymeleaf的优势体现在html的属性上,保证了html的完整性语法结构没有被破坏;浏览器可以直接预览模板文件,无需服务器端支持;它提供了大量的内置对象和内置工具;语法简单易学;支持html、js、raw等模板类型;适应人群:有一定JavaWeb开发基础,掌握SpringBoot,或有工作经验的人。课程目录:第1章Thymeleaf小试1-1thymeleaf-template工作方法1-2thymeleaf-文档1-3thymeleaf-第一个例子1-4thymeleaf-template使用资料1-5thymeleaf-使用模板文件1-6thymeleaf-设置模板前后缀1-7thymeleaf-springboot环境搭建1-8thymeleaf-testspringboot使用模板基础语法-22-3thymeleaf-link表达式2-4thymeleaf-link表达式传递参数2-5thymeleaf-国际化介绍2-6thymeleaf-customLocalResolver2-7thymeleaf-internationalization模板定义2-8thymeleaf-ModeInternationalization2-9thymeleaf-text表达式2-10thymeleaf-numeric表达式2-11thymeleaf-boolean表达式2-12thymeleaf-null和空字符串2-13thymeleaf-逻辑表达式2-14thymeleaf-三元运算符-12-15thymeleaf-三元运算符-22-16thymeleaf-设置属性值2-17thymeleaf-attr设置任意属性值2-18thymeleaf-设置属性值2-19thymeleaf-同时设置多个属性值2-20thymeleaf-booleanset2-21thymeleaf-setlabelbodytext2-22thymeleaf-loopeach(1)2-23thymeleaf-eachloopcommonMap2-24thymeleaf-each循环ListMap2-25thymeleaf-each循环Array2-26thymeleaf-each循环向Select组件添加数据2-27thymeleaf-each循环状态变量2-28thymeleaf-如果使用2-29thymeleaf-除非使用第3章Thymeleaf模板参考3-1thymeleaf-templateIntroduce3-2thymeleaf-templateinsertusing3-3thymeleaf-functiontemplateandcurrent页面定义模板3-4thymeleaf-使用id引用模板3-5thymeleaf-replace并包含比较3-6thymeleaf-commonlyinsert-replace3-7thymeleaf-redelete3-8thymeleaf-re其他范围值3-9thymeleaf-动态指定模板名称3-10thymeleaf-inline在js中获取数据3-11thymeleaf-inline与文本使用对比3-12thymeleaf-禁用inline3-13thymeleaf-局部变量第四章Thymeleaf内置对象4-1thymeleaf内置工具类4-2thymeleaf内置工具类date和string4-3thymeleaf内置对象#request4-4thymeleaf内置对象#session和#servletContext4-5thymeleaf-shortcut对象param4-6thymeleaf-shortcut对象会话和应用