带参数的URL表达式
Thymeleaf详解可以参考这篇文章:https://gitee.com/YouthChina/Typora/blob/master/thymeleaf%20%E8%AF%AD%E6%B3%95%E8%AF%A6%E8%A7%A3.md
带参数的URL表达式
表达式中可以携带一个或多个参数.
1 1.<a th:href="@{/order/details(id=3)}"></a> 2 equals:<a href="/order/details?id=3"></a>
3 2.携带多参数:<a th:href="@{/order/details(id=3,action='show_all')}"></a> 4 equals: <a href="/order/details?id=3&action=show_all"></a>