- package com.nokia.config;
- import com.fasterxml.jackson.databind.ObjectMapper;
- import com.fasterxml.jackson.databind.SerializationFeature;
- import org.springframework.context.annotation.Bean;
- import org.springframework.context.annotation.Configuration;
- @Configuration
- public class BeanConfig {
- @Bean
- public ObjectMapper objectMapper(){
- return new ObjectMapper().disable(SerializationFeature.FAIL_ON_EMPTY_BEANS);
- }
- }
|