猿问

有没有童鞋遇到过同样的问题:SpringDataJPA报错,hibernateLazyInitializer无法转换为JSON

Typedefinitionerror:[simpletype,classorg.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor];nestedexceptioniscom.fasterxml.jackson.databind.exc.InvalidDefinitionException:Noserializerfoundforclassorg.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptorandnopropertiesdiscoveredtocreateBeanSerializer(toavoidexception,disableSerializationFeature.FAIL_ON_EMPTY_BEANS)
拉莫斯之舞
浏览 330回答 2
2回答

宝慕林4294392

objectMapper.setSerializationInclusion(JsonInclude.Include.NON_EMPTY);
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答