当可选参数XXX不存在时,Spring默认将其赋值为null,但由于XXX已定于为基本类型int,所以赋值失败!
解决方法:
“Consider declaring it as object wrapper for the corresponding primitive type.”建议使用包装类型代替基本类型,如使用“Integer”代替“int”
当可选参数XXX不存在时,Spring默认将其赋值为null,但由于XXX已定于为基本类型int,所以赋值失败!
解决方法:
“Consider declaring it as object wrapper for the corresponding primitive type.”建议使用包装类型代替基本类型,如使用“Integer”代替“int”