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 - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

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

java - Reading data from multiple zip files and combining them to one -