Java spring pass id to url in template

You can generate the URL with

<a th:href="@{/hike/{id}/(id=${hike.id})}">SELECT</a>

or

<a th:href="@{|/hike/${hike.id}|}">SELECT</a>

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top