2017-04-25 39 views
0

我在想我的對象轉移到template.Here的一個錯誤,當春Thymleaf.I'm有一個問題是新:無法解析爲表達

org.thymeleaf.exceptions.TemplateProcessingException: 
Could not parse as expression: "$(payments.comment)" (user/profile:13) 

能不能幫我一點點。謝謝大家。

That is my GetMapper

That is my Thymleaf template

+0

如果您將代碼作爲文本而不是屏幕截圖包含在其他人中,會更好/更容易。問題可能是您使用'$(...)'而不是'$ {...}'作爲payments.comment – Philipp

回答

0

您正在使用括號:

$(payments.comment) 

使用大括號代替:

${payments.comment} 

注意{}是不一樣的()

+0

正是如此,非常感謝! –

+0

當然是 非常感謝 –