Произошла ошибка во время анализа шаблона (шаблон: «ресурс пути к классу [templates/update-customer.html]»)
org.thymeleaf.Exceptions.TemplateInputException: произошла ошибка во время анализа шаблона (шаблон: «ресурс пути к классу [templates/update-customer.html]»)
Из-за этой проблемы меня не удается перенаправить на мой update-customer.html.
Код: Выделить всё
list.html:
[url=@{]Update[/url]
Код: Выделить всё
CustomerController.java:
@Controller
@RequestMapping("/customers")
public class CustomerController {
private CustomerService customerService;
public CustomerController(CustomerService theCustomerService){
customerService = theCustomerService;
}
@GetMapping("/form-update-customer/{id}")
public String formUpdateCustomer(@PathVariable("id") int id, Model model) {
CustomerModel customerModel = customerService.read(id);
model.addAttribute("customer", customerModel);
return "update-customer";
}
}
Код: Выделить всё
update-customer.html
Код: Выделить всё
Update Customer
Update
Подробнее здесь: https://stackoverflow.com/questions/782 ... -thymeleaf