常用的配置总结
- 一、pom.xml中常用的依赖包
- 二、常用的头文件配置
- 2.1 thymeleaf头文件配置
- 2.2 thymeleaf整合security头文件配置
- 2.3thymeleaf整合shiro头文件配置
一、pom.xml中常用的依赖包
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-security
org.thymeleaf
thymeleaf-spring5
org.thymeleaf.extras
thymeleaf-extras-java8time
org.thymeleaf.extras
thymeleaf-extras-springsecurity4
org.apache.shiro
shiro-core
org.apache.shiro
shiro-spring
com.github.theborakompanioni
thymeleaf-extras-shiro
mysql
mysql-connector-java
com.alibaba
druid
org.mybatis.spring.boot
mybatis-spring-boot-starter
org.slf4j
jcl-over-slf4j
org.slf4j
slf4j-log4j12
log4j
log4j
二、常用的头文件配置
2.1 thymeleaf头文件配置
xmlns:th="http://www.thymeleaf.org"
2.2 thymeleaf整合security头文件配置
xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4"
2.3thymeleaf整合shiro头文件配置
xmlns:shiro="http://www.thymeleaf.org/thymeleaf-extras-shiro"