这个异常是由于在创建一个类型为[Lcom.xm.pojo.Item;的对象时发生了错误。其中[L表示一个数组,com.xm.pojo.Item表示数组的元素类型。异常消息中提到找不到默认构造函数<init>(),这意味着com.xm.pojo.Item类没有定义一个没有参数的构造函数。

要解决这个问题,你可以在com.xm.pojo.Item类中添加一个没有参数的构造函数,或者使用其他适合的构造函数来创建[Lcom.xm.pojo.Item;对象。

orgspringframeworkwebutilNestedServletException Request processing failed; nested exception is orgspringframeworkbeansBeanInstantiationException Failed to instantiate LcomxmpojoItem; No default constr

原文地址: http://www.cveoy.top/t/topic/h8at 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录