![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
thyemleaf
爱吃西瓜的小松鼠
这个作者很懒,什么都没留下…
展开
-
spring boot 整合thyemleaf基本使用(一)
thyemleaf基本使用 :首先引入依赖thyemleaf <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency&g...原创 2018-10-17 09:18:29 · 3292 阅读 · 0 评论 -
spring boot 整合thyemleaf基本使用 字符串的操作(二)
thyemleaf基本使用 字符串的操作的基本使用,其他的以后用到可以查看文档或者百度。 <!--在输入框中显示msg的值--> <input type="text" name="username" th:value="${msg}"> <hr/> <!--判断字符串是否为空,是返回true,否则返回false--> <原创 2018-10-17 10:03:19 · 363 阅读 · 2 评论 -
spring boot 整合thyemleaf基本使用 日期的操作(三)
<!--格式化日期,默认的以浏览器默认语言为格式化标准--> <span th:text="${#dates.format(key)}"></span> <hr/> <!--自定义格式--> <span th:text="${#dates.format(key,'yy/mm/dd')}"><原创 2018-10-17 10:21:52 · 314 阅读 · 0 评论 -
springboot个人博客的构建(3) thymleaf模板的引入
第一步:静态页面导入到IDEA中 先看前台: 再看后台IDEA: 建立相同的目录,这样直接复制到IDEA中,就不会出现乱码或者引用有问题的问题。 第二:thymleaf模板的引入 直接访问静态页面,没问题。可是运行IDEA运行整个项目的时候页面出现了格式混乱的问题。此时需要thymleaf模板的引入。 先看头部: 模板页面: 网页的头部引入方式: ...原创 2018-10-28 21:07:19 · 872 阅读 · 0 评论 -
springboot个人博客的构建(1)异常处理
工程如下所示: error页面: <!DOCTYPE html> <html lang="en" xmlns:th="http://www.w3.org/1999/xhtml"> <head> <meta charset="UTF-8"> <title>错误</title原创 2018-10-27 21:14:36 · 566 阅读 · 0 评论