I'm just trying to pass a parameter from a controller to a Thymeleaf template. From the Thymeleaf documentation I understand that I can do it as below:
return "editor/{id}(id=" + newEditor.getIdEditor() + ")";
There is a function into the controller which receives the request
@GetMapping(value = "/editor/{id}")
but all I get is an error
Error resolving template [editor/{id}(id=8)],
Maybe my approach is wrong and there is a proper way to do it, but I haven't found it.