![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
thymeleaf
心多大,路多远
这个作者很懒,什么都没留下…
展开
-
Thymeleaf页面静态化
了解Thymeleaf的基本使用 实现商品详情页的渲染 知道页面静态化的作用 实现页面静态化功能 1.商品详情 当用户搜索到商品,肯定会点击查看,就会进入商品详情页,接下来我们完成商品详情页的展示, 1.1.Thymeleaf 在商品详情页中,我们会使用到Thymeleaf来渲染页面,所以需要先了解Thymeleaf的语法。 详见课前资料中《Thymeleaf语法入门.md》 1.2.商品详情页服务 商品详情浏览量比较大,并发高,我们会独立开启一个微服务,用来展示商品详情。 1.2.1.创建module原创 2020-09-27 20:45:03 · 1013 阅读 · 0 评论 -
Thymeleaf实例页面范例
<!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <title >产品列表页</title> <link rel="icon" href="/img/fa.原创 2020-09-20 12:30:02 · 1306 阅读 · 0 评论 -
thymeleaf功能详解
一.简单表达格式: thymeleaf的官方参考文档 1.变量的表达式:${...} 2.选择变量表达式:*{...} 3.信息表达:#{...} 4.链接URL表达式:@{...} 二.字面值 1.文本文字:'one text','Another one!',… 2.文字数量:0,34,3.0,12.3,… 3.布尔型常量:true,false 4.空的文字:null 5.文字标记:one,sometext,main,… 四:文本...原创 2020-09-20 12:26:58 · 1862 阅读 · 0 评论 -
thymeleaf使用
一、总结与计划 1.1 总结 SpringBoot自动配置回顾 基于SpringBoot整合SSM开发 一个SpringBoot项目本身就是依赖Spring:spring-boot-starter 整合SpringMVC:spring-boot-starter-web 整合MyBatis Druid:druid-spring-boot-starter MyBatis:mybatis-spring-boot-sta原创 2020-09-10 10:30:18 · 140 阅读 · 0 评论