No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor

后端 未结 8 1786
野的像风
野的像风 2020-12-04 15:15

When i try to navigat to an endpoint i get tho following error

Type definition error: [simple type, class org.hibernate.proxy.pojo.bytebuddy.ByteBuddy

相关标签:
8条回答
  • 2020-12-04 16:11

    Hmm are you traying to send entities from one instance of the jvm to another one which need to serialize them? if this is the case i think the error is because you fetched the entities somehow and hibernate is using its not serializable classes, you need to convert entities to pojo's (i mean use native types or objects that are serializables).

    0 讨论(0)
  • 2020-12-04 16:18

    Changing from MyEntityClassRepositorie.getOne(id) to MyEntityClassRepositorie.findById(id).get() work fine for me

    0 讨论(0)
提交回复
热议问题