
Thymeleaf
Chgl16
这个作者很懒,什么都没留下…
展开
-
Spring Boot使用Thymeleaf
配置如果创建项目的时候没有选择Thymeleaf模板,可以在pom.xml中添加Spring Boot专属Thymeleaf的打包依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId&原创 2018-12-12 16:00:07 · 862 阅读 · 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 · 18285 阅读 · 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 · 1081 阅读 · 0 评论