0
点赞
收藏
分享

微信扫一扫

(7)模板引擎thymeleaf

 ​​https://www.thymeleaf.org/​​

引入

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

把静态文件放入templates文件夹下就可以自动渲染thymeleaf

(7)模板引擎thymeleaf_spring

 

@RequestMapping("/ok")
public String abc() {
return "success";
}

 

(7)模板引擎thymeleaf_bc_02

 

 

语法

 



举报

相关推荐

0 条评论