thymeleaf使用(,,)的形式解析多个参数,结合${}放置变量十分方便:


<a th:href="@{/teacherShowMember(class_id=${class.classId},class_name=${class.className})}"></a>

 


 

传统URL传递多参数使用?&拼接:

 

<a th:href="/teacherShowMember?class_id=123&class_name=XXX"></a>

相关文章:

  • 2022-01-18
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-16
猜你喜欢
  • 2022-02-26
  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案