fastjson springmvc请求报错?

bwntbbo3  于 2021-11-27  发布在  Java
关注(0)|答案(2)|浏览(277)

@RequestMapping("saveOrUpdateInforelease")
public @responsebody Object saveOrUpdateInforelease(@RequestParam(required=false)MultipartFile file,String imgs,@RequestParam(defaultValue = "0") long officeId) throws Exception {
..................
}

@RequestParam(required=false)MultipartFile file由于未上传文件而报错,但是required=false不上传文件不应该报错

kuhbmx9i

kuhbmx9i1#

14:11:42,815 INFO [STDOUT] 4)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)
at com.alibaba.fastjson.serializer.FieldSerializer.writeValue(FieldSerializer.java:194)
at com.alibaba.fastjson.serializer.JavaBeanSerializer.write(JavaBeanSerializer.java:296)

92vpleto

92vpleto2#

详细的错误给出来看看

相关问题