Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html Thymeleaf中的链接URL_Html_Spring_Spring Boot_Spring Mvc_Thymeleaf - Fatal编程技术网

Html Thymeleaf中的链接URL

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" > 变量模板是

我想用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}, token=${token})}" >

变量模板是的一部分。您可以有任意数量的参数,只需将它们添加到参数列表中,以逗号分隔即可。像下面这样的

<form method="get" th:action="@{/validate/{id}/{token}/.html(id=${user.id}, token=${token})}" >