Skip to content

Commit f0818c1

Browse files
committed
Update Jackson imports for Hibernate7Module
Replaced deprecated com.fasterxml.jackson imports with tools.jackson equivalents for JacksonModule and Hibernate7Module. Updated bean method signature to use JacksonModule instead of Module.
1 parent 725b73f commit f0818c1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

turing-app/src/main/java/com/viglet/turing/TuringES.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@
2626
import org.springframework.scheduling.annotation.EnableScheduling;
2727
import org.springframework.web.filter.CharacterEncodingFilter;
2828

29-
import com.fasterxml.jackson.databind.Module;
30-
import com.fasterxml.jackson.datatype.hibernate7.Hibernate7Module;
31-
3229
import lombok.extern.slf4j.Slf4j;
30+
import tools.jackson.databind.JacksonModule;
31+
import tools.jackson.datatype.hibernate7.Hibernate7Module;
3332

3433
@Slf4j
3534
@SpringBootApplication(exclude = { MongoAutoConfiguration.class })
@@ -56,7 +55,7 @@ FilterRegistrationBean<CharacterEncodingFilter> filterRegistrationBean() {
5655
}
5756

5857
@Bean
59-
Module hibernate7Module() {
58+
JacksonModule hibernate7Module() {
6059
return new Hibernate7Module();
6160
}
6261
}

0 commit comments

Comments
 (0)