develog

[spring boot] Hibernate5Module 본문

Dev/Spring Boot

[spring boot] Hibernate5Module

냐옴 2020. 11. 2. 22:54

 

compile 'com.fasterxml.jackson.datatype:jackson-datatype-hibernate5'

@Bean
public Hibernate5Module hibernate5Module() {
    Hibernate5Module hibernate5Module = new Hibernate5Module();
    hibernate5Module.configure(Hibernate5Module.Feature.FORCE_LAZY_LOADING, true);
    return hibernate5Module;
}
Comments