15 SpringBoot模板引擎

JSP、Velocity、Freemarker、Thymeleaf SpringBoot推薦的Thymeleaf; 語法更簡單,功能更強大; 1、引入thymeleaf 2、Thymeleaf使用 只要我們把HTML頁面放在classpath:/templates/,thymeleaf就能自動渲染; 使用: 1、導入thymeleaf的名稱空間 <html lang="en" xmlns:th="
相關文章
相關標籤/搜索