我想使用 thymeleaf 创建 REST url。我有这样的东西:
<a th:href="@{customer/(${c.id})/edit}">Edit</a>
输出为:
http://localhost:8080/app/customer/($%7Bs.id%7D)/edit
但我想得到:http://localhost:8080/app/customer/4/edit
我怎样才能实现这个目标?请帮忙。
最佳答案
关于spring - thymeleaf 使用动态参数/元素生成 REST url,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27324137/