十一、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、启动

posted on 2018-10-12 16:20  那只猴子  阅读(98)  评论(0)    收藏  举报

导航