![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Thymeleaf
Chgl16
这个作者很懒,什么都没留下…
展开
-
Spring Boot使用Thymeleaf
配置 如果创建项目的时候没有选择Thymeleaf模板,可以在pom.xml中添加Spring Boot专属Thymeleaf的打包依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId&原创 2018-12-12 16:00:07 · 819 阅读 · 1 评论 -
Spring Boot之Thymeleaf引用静态资源
方法 Spring Boot在Thymeleaf结构模块很好提供了静态资源的引用方法 th:[href | src]@{资源在static下的目录}, 如:@{lib/jquery.js} 不用填写默认的static文件夹 案例 资源目录结构 templates目录下的ws.html可以这样引用static下的资源文件 <!DOCTYPE html> <htm...原创 2018-12-13 20:44:38 · 18101 阅读 · 4 评论 -
Thymeleaf总结
1. Thymeleaf引用母版页 <!DOCTYPE html> <!-- 引入对应的命名空间 --> <html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout" layout:decorator=...原创 2019-08-31 10:01:19 · 991 阅读 · 0 评论