一个参数
<a href="需要跳转的页面" th:href="@{controller下的方法(变量名=${参数})}" th:text="${参数}"></a>
例如:
<a href="xx.html" th:href="@{/room/gobook(id=${item.roomId})}" th:text="${item.name}"></a>
多参数
多个参数用英文逗号隔开
<a th:href="@{/room/gobook(roomId=${item.roomId},roomStock=${item.roomStock})}"></a>
controller方法
页面