@RequestMapping(value = "{parent}/appendChild", method = RequestMethod.POST)
public String appendChild(
Model model,
@PathVariable("parent") long pid,
@ModelAttribute("child") Resource child, BindingResult result) { ...}
报错,错误消息如下:
Failed to convert property value of type java.lang.String to required type boolean for property parent; nested exception is java.lang.IllegalArgumentException: Invalid boolean value [31]