-
方式一:
th:href="@{/query/{id}(id=${c.getId()})}"
-
方法二:多个参数
字符串拼接
th:href="@{'/delete/'+${a.getId()}+'/'+${c.Id()}}" th:src="@{'src链接'+${model中的传递值}}"
thymeleaf中使用Restful风格的两种传参形式
于 2022-02-12 20:29:03 首次发布
方式一:
th:href="@{/query/{id}(id=${c.getId()})}"
方法二:多个参数
字符串拼接
th:href="@{'/delete/'+${a.getId()}+'/'+${c.Id()}}" th:src="@{'src链接'+${model中的传递值}}"