Thymeleaf construct URL with variable

后端 未结 5 899
夕颜
夕颜 2020-12-01 01:24

I have the following code setting a variable in my controller:

model.set(\"type\", type);

In the thymeleaf view I want to construct a form

5条回答
  •  旧巷少年郎
    2020-12-01 01:52

    If You don't want to use string concatenation (proposed by Sotirios), You can use expression preprocessing in URL link:

提交回复
热议问题