Thymeleaf 2 expressions in URL

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Thymeleaf 2 expressions in URL

I am using Spring Boot 2.1.6.RELEASE , Thymeleaf 3.0.11.RELEASE . I have

It works ok, generate to http://localhost:8080/customer/42. I try

It does not work as expected, I want it generate to http://localhost:8080/customer/1/42 (accountObject.accountObjectType = 2)

I need something like /customer/1/ because it will be @PathVariable("type") Integer type in Spring MVC Controller.

How to put 2 expressions in Thymeleaf URL?