SPRINGBOOT5--html模板应用

1.项目路径resource下都是存放静态资源,static可存放图片,templates则是存放html模板,模板修改以后需重启服务器才能生效html

2.模板必须放在templates下而且引入,pom中引入spring

<dependency>
<groupId>org.springframework.boot</groupId>
 <artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
3.controller
服务器

相关文章
相关标签/搜索