thymeleaf th:href 多個參數傳遞格式

    今天在使用thymeleaf的th:href傳遞多個參數的時候困惑了。而後百度了一下,發現沒有人註釋說明怎麼弄,而後本身google了一下,如今就標記一下,方便記錄一下。google

                th:href="@{/Controller/behavior(param1=1,param2=${person.id})}"。就是使用逗號隔開多個參數!!!io

相關文章
相關標籤/搜索