可选int参数'cid'存在,但因为被声明为基本类型而没法转换为空值。考虑将其声明为相应基元类型的对象包装。

cid的值没有传入,因此没法显示数据spa public String add(Product p, Model model) throws IOException { productService.add(p); model.addAttribute("cid",p.getCid()); return "redirect:/admin_product_list?cid="
相关文章
相关标签/搜索