springmvc整合Thymeleaf简单教程
😂
😂
😂
搭建一个springmvc环境是必需的,本项目为SSM环境,但都一样,本文不重复了
先贴一下工程目录
首先在pom.xml中添加以下依赖
<!-- https://mvnrepository.com/artifact/org.thymeleaf/thymeleaf-spring4 -->
<dependency>
<groupId>org.thymeleaf</groupId>
<artifactId>thymeleaf-spring4</artifactId>
<version>3.0.9.RELEASE</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.thymeleaf/thymeleaf -->
<dependency>
<groupId>org.thymeleaf</groupId>
<artifactId>thymeleaf</artifactId>
<version>3.0.9.RELEASE</ver