D
it is falling into this exception because you are incorrectly calling your endpoint, when you call the path /clients/list actually you are passing the string "list" pro your view method, which causes your exception, the right would be customers/15 for example, being 15 your client's id, or just customers to call the list methodediting here the answer because I realized that you have several errings seeing your git
1 Your methods of your controllers, realize that you are using the ModelAndView method by passing the view name, model name, and then the model object, your model is called a client, and when you pass it by passing customers in the plural in some calls, you need to be equal because otherwise it doesn't identify.
2° your view method you are getting a model but put the id name, I think you got confused here, when I see you should exchange this Customer for long id
3° still in your view method, you're passing the customer with nothing, that la on the front will give an exception for null, changing his method he stayed like this for me:@GetMapping("{id}")
public ModelAndView view(@PathVariable("id") long id) {
Cliente cliente = new Cliente(id, "Lucas", "123456"); //essa parte aqui você deve trocar pelo seu select
return new ModelAndView("view", "cliente", cliente);
}
4° in your html you put in the view that is making error in line 10 th:if="{globalMessage}", there is a scarlet here and so it was making a mistake to parsear, the right would be th:if="${globalMessage}"