java中使用thymeleaf的web项目/i要插入到文件中:
<!DOCTYPE html>
<html lang="en" xmlns:th="http://thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div th:fragment="srs-header">
header
</div>
</body>
</html>
以下是片段:
<!DOCTYPE html>
<html lang="en" xmlns:th="http://thymeleaf.org">
<head>
<!-- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />-->
<meta charset="UTF-8">
</head>
<body>
<div th:insert="books-header :: srs-header"></div>
</body>
</html>
结果,我得到了错误:whitelabel error页。我做错什么了?
1条答案
按热度按时间cbjzeqam1#
结果当我这样写的时候: