无法在Thymeleaf中解析为表达式标题

时间:2019-04-28 15:26:46

标签: java thymeleaf

使用Thymeleaf时遇到此麻烦。 我的代码:

<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <head th:replace="layout :: head(title=placeInfomation.getPlaceName())">
</head>
Caused by: org.attoparser.ParseException: Could not parse as expression: "~{layout :: head(title=placeInfomation.getPlaceName())}" (template: "placeDetail" - line 3, col 7)

0 个答案:

没有答案