java.lang.IllegalStateException: No primary or single public constructor found for class [Ljava.io.Serializable; - and no default constructor found either
public RespBean deleteJoblevels(Serializable[] ids){
------改为----->
public RespBean deleteJoblevels(Integer[] ids){
java.lang.IllegalStateException: Type handler was null on parameter mapping for property '__frch_item_0'. It was either not specified and/or could not be found for the javaType ([I) : jdbcType (null) combination.
public RespBean deleteJoblevels(int[] ids){ ------改为-----> public RespBean deleteJoblevels(Integer[] ids){
思考: 1. Serializable可以接受id参数,Serializable[]数组缺报IllegalStateException 2. Integer[]与int[]的区别
本文探讨了Java中处理Serializable与Integer数组作为参数时出现的不同异常情况,并对比了int[]与Integer[]的区别,深入分析了这些异常产生的原因及解决方法。
713

被折叠的 条评论
为什么被折叠?



