在html文件使用thymeleaf 标签 需要再头文件中加入命名空间
<html xmlns:th="http://www.thymeleaf.org">
Thymeleaf 标签 - 片段(th:fragment)
被引用的片段应该做如下标记:
<div th:fragment="editUserFragment">
引用片段做如下标记:
<div th:replace="userManager/editUser::editUserFragment"></div>
在html文件使用thymeleaf 标签 需要再头文件中加入命名空间
<html xmlns:th="http://www.thymeleaf.org">
Thymeleaf 标签 - 片段(th:fragment)
被引用的片段应该做如下标记:
<div th:fragment="editUserFragment">
引用片段做如下标记:
<div th:replace="userManager/editUser::editUserFragment"></div>