No serializer found for class java.io.FileDescriptor and no properties discovered to create BeanSeri

司寇瑾瑜
2023-12-01

Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class java.io.FileDescriptor and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: java.util.HashMap[“part”]->org.apache.catalina.core.ApplicationPart[“inputStream”]->java.io.FileInputStream[“fd”])

错误经过:springboot接收文件时报错。

后来经过排查发现是AOP输出请求内容时,使用jackson解析提交的参数时无法解析文件导致。

 类似资料:

相关阅读

相关文章

相关问答