Thymeleaf

Thymeleaf

视图模板技术

JavaWeb教程目录 | 代码重工 (gitee.io)

6. thymeleaf的部分标签
   1) 使用步骤: 添加jar , 新建ViewBaseServlet(有两个方法) , 配置两个<context-param> : view-prefix , view-suffix
   2) 部分标签: <th:if> , <th:unless> , <th:each> , <th:text>
7、Thymeleaf-视图模板技术
(1)添加thymeleaf的jar包
(2)在web.xml文件中添加配置
(3)新建一个Servlet类ViewBaseServlet
(4)使得我们的Servlet继承ViewBaseServlet 
posted @ 2023-04-28 15:46  _xiaolin  阅读(0)  评论(0)    收藏  举报  来源