常用依赖、约束、模板
常用文档传送门
- springBoot启动器官方传送门:https://docs.spring.io/spring-boot/docs/2.1.4.RELEASE/reference/htmlsingle/#using-boot-starter
thymeleaf
其他版本官方传送门:
- pom.xml
<dependency>
<groupId>org.thymeleaf</groupId>
<artifactId>thymeleaf-spring5</artifactId>
</dependency>
<dependency>
<groupId>org.thymeleaf.extras</groupId>
<artifactId>thymeleaf-extras-java8time</artifactId>
</dependency>
- 命名空间
<html xmlns:th="http://www.thymeleaf.org">
<!-- thymeleaf 整合 SpringSecurity -->
<html xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">