在springboot后 thymeleaf整合后应当出现的maps中的内容,而不是现在的字符串
解决方法:将上边的注解@RestController更改为@controller 和下方的@ResponseBody
==============================================
thymeleaf在pom文件中的配置
<properties>
<java.version>1.8</java.version>
<thymeleaf.version>3.0.2.RELEASE</thymeleaf.version>
<thymeleaf-layout-dialect.version>2.0.4</thymeleaf-layout-dialect.version>
<!--更改springboot中原本的thymeleaf的版本>
</properties>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>