devxlogo

Avoid Jackson Lazy Init Exceptions

Avoid Jackson Lazy Init Exceptions

First, add the following dependency to your project (Maven):

 com.fasterxml.jackson.datatype    jackson-datatype-hibernate5    ${jackson.version}

Further, add the following bean:

@Beanpublic Module datatypeHibernateModule() {  return new Hibernate5Module();}

devx-admin

Share the Post: