首页  

springboot序列化异常FAIL_ON_EMPTY_BEANS处理     所属分类 spring 浏览量 1595
bean没有字段时,序列化报错


com.fasterxml.jackson.databind.exc.InvalidDefinitionException: 
No serializer found for class dyyx.test.MyIntfImpl and no properties discovered to create BeanSerializer 
(to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS)

spring.jackson.serialization.FAIL_ON_EMPTY_BEANS=false

配置文件里配置 

spring.jackson.serialization.FAIL_ON_EMPTY_BEANS=false

上一篇     下一篇
maven知识点整理

springboot打包成可执行jar

springboot打包排除配置文件

springboot应用打成war包

并发编程的挑战摘要

并发机制的底层实现原理摘要