springbootl用thymeleaf整合htm

Posted 不死码农

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了springbootl用thymeleaf整合htm相关的知识,希望对你有一定的参考价值。

pom文件:

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

properties文件:

 

spring.thymeleaf.prefix=classpath:/templates/
spring.thymeleaf.suffix=.html
spring.thymeleaf.mode=LEGACYHTML5
spring.mvc.static-path-pattern=/static/**
spring.thymeleaf.cache=false

 

静态文件结构:

 

以上是关于springbootl用thymeleaf整合htm的主要内容,如果未能解决你的问题,请参考以下文章

SpringBoot整合LayUI和Thymeleaf制作简单登录页面

SpringBoot整合LayUI和Thymeleaf制作简单登录页面

SpringBoot整合LayUI和Thymeleaf制作简单登录页面

springboot thymeleaf和shiro标签整合

spring整合thymeleaf

Shiro整合Thymeleaf