Springboot引入thymeleaf

文章目录

【笔记于学习尚硅谷课程所作】

1、引入thymeleaf

1、导入thymeleaf

 <!--  页面类似热加载的工具 -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <optional>true</optional>
        </dependency>

        <!--引入thymeleaf-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-thymeleaf</artifactId>
        </dependency>

2、禁用缓存

  thymeleaf:
    cache: false

猜你喜欢

转载自blog.csdn.net/qq_41596568/article/details/106433130