Skip to content
Advertisement

MappingJackson2HttpMessageConverter configuration is not being recognized in spring boot 2

I am working with spring for a while already and in my spring boot 1.5x’s projects always dealing with the LazyInitializationException with the next configuration (more downstairs) but now I am creating a new project with spring boot 2 and the same configuration is not being recognized further than WebMvcConfigurer now replace to the deprecated WebMvcConfigurerAdapter.

My configuration:

JavaScript

But after that I get an error yet:

JavaScript

Advertisement

Answer

try to add @Bean in the method

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement