thymeleaf中th:href字符拼接
<td><a th:href="@{'/user/Edit/'+${user.id}}"><button class="btn-warning">编辑</button></a></td>
后端:
@RequestMapping("/Edit/{id}")
不经一番彻骨寒,哪有梅花扑鼻香?
<td><a th:href="@{'/user/Edit/'+${user.id}}"><button class="btn-warning">编辑</button></a></td>
后端:
@RequestMapping("/Edit/{id}")