十一、springboot整合Thymeleaf

1、添加jar包依赖 

  <dependency>

            <groupId>org.springframework.boot</groupId>

            <artifactId>spring-boot-starter-thymeleaf</artifactId>

       </dependency>

2、文件目录

  /src/java/resources/templates
3、修改application.properties

  spring.thymeleaf.prefix: classpath:/templates/

      spring.thymeleaf.suffix: .html

4、启动

猜你喜欢

转载自www.cnblogs.com/monkeybrother/p/9778821.html
今日推荐