15 SpringBoot模板引擎

JSP、Velocity、Freemarker、Thymeleaf SpringBoot推荐的Thymeleaf; 语法更简单,功能更强大; 1、引入thymeleaf 2、Thymeleaf使用 只要我们把HTML页面放在classpath:/templates/,thymeleaf就能自动渲染; 使用: 1、导入thymeleaf的名称空间 <html lang="en" xmlns:th="
相关文章
相关标签/搜索