Home » Tip Bank » Java
  • Comment on this Article
Language: Java
Expertise: Intermediate
Jul 9, 2019
  • facebook
  • twitter
  • in
  • Email

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Watch

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:

@Bean
public Module datatypeHibernateModule() {
  return new Hibernate5Module();
}
OCTAVIA ANDREEA
 
Submit a Tip
Browse "Java" Tips
Browse All Tips
googlecode.com
codecademy.com