Html Thymeleaf中的链接URL
我想用Thymeleaf创建这个get URL。其中,token是一个模型属性Html Thymeleaf中的链接URL,html,spring,spring-boot,spring-mvc,thymeleaf,Html,Spring,Spring Boot,Spring Mvc,Thymeleaf,我想用Thymeleaf创建这个get URL。其中,token是一个模型属性 <form method="get" th:action="@{/validate/{id}/${token}/.html(id=${user.id})}" > 但令牌不会被替换: <form method="get" action="/validate/68/${token}/.html" > 变量模板是
<form method="get" th:action="@{/validate/{id}/${token}/.html(id=${user.id})}" >
但令牌不会被替换:
<form method="get" action="/validate/68/${token}/.html" >
变量模板是的一部分。您可以有任意数量的参数,只需将它们添加到参数列表中,以逗号分隔即可。像下面这样的
<form method="get" th:action="@{/validate/{id}/{token}/.html(id=${user.id}, token=${token})}" >
变量模板是的一部分。您可以有任意数量的参数,只需将它们添加到参数列表中,以逗号分隔即可。像下面这样的
<form method="get" th:action="@{/validate/{id}/{token}/.html(id=${user.id}, token=${token})}" >