spring - thymeleaf generate REST url with dynamic parameters/elements -


i create rest url thymeleaf. i've this:

<a th:href="@{customer/(${c.id})/edit}">edit</a> 

the output is: http://localhost:8080/app/customer/($%7bs.id%7d)/edit

but get: http://localhost:8080/app/customer/4/edit

how can achive this? please help.

what need called preprocessing, follow link!

in case, should this:

<a th:href="@{customer/__${c.id}__/edit}">edit</a> 

Comments

Popular posts from this blog

javascript - ScrollTo Effect (href to div) -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -