给thymeleaf中 href 的 url传递 参数

 

thymeleaf th:href url传递 参数 的问题

<a th:href="@{/index(user=${user},email=${email})}"></a>

 

和传统的写法,效果一样的。

<a th:href="/index?user=123&email=456"></a>

 

 

posted on 2020-06-11 14:34  wuyicode  阅读(3391)  评论(0编辑  收藏  举报