Thymeleaf:查询字符串

时间:2017-05-10 14:04:17

标签: query-string thymeleaf

如何在Thymeleaf中创建网址:

/user/map?userId=1&mapId=2  

在thymeleaf模型中,我可以访问$ {user.id}和$ {map.id}。

我试过了:

th:href="@{'/user/map/update/?userId=' + ${user.id} + '&mapId=' + ${map.id}}"

但它给出了:

The reference to entity "mapId" must end with the ';' delimiter.

1 个答案:

答案 0 :(得分:5)

docs

JdbcResultSetMetaData