(7)模板引擎thymeleaf

阅读 61

2022-12-08

 ​​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)

0 0 举报