【发布时间】:2021-03-15 20:21:08
【问题描述】:
我有一个带有这个表达式的 Thymeleaf 模板:
<div class="box small">
<img th:src="'${@environment.getProperty('pics.path')} + '/' + ${user.id} + '/' + ${pic}"/>
</div>
但我有这个错误:
Could not parse as expression: "'${@environment.getProperty('pics.path')} + '/' + ${user.id} + '/' + ${pic}" (template: "joan" - line 528, col 38)
【问题讨论】:
标签: java html spring-boot spring-mvc thymeleaf