1
<a th:href="@{/question/{id}(id=${question.id})}">

id代表变量,左边的大括号来给id赋值