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解析提交的参数时无法解析文件导致。