引入pom依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
在网页中添加<html xmlns:th="http://www.thymeleaf.org">,将本来有的标签删掉
使用的时候需要在标签体中添加th:
<span id="all" th:text="${pageInfo.total}"></span>