//package com.backendsys.config.Serializer;
//
//import com.fasterxml.jackson.databind.ObjectMapper;
//import org.springframework.context.aspect.Bean;
//import org.springframework.context.aspect.Configuration;
//import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
//
///**
// * 处理返回值中的null值
// */
//@Configuration
//public class JsonConfig {
//    @Bean
//    public MappingJackson2HttpMessageConverter mappingJacksonHttpMessageConverter() {
//        final MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter();
//        System.out.println(converter);
//        ObjectMapper mapper = converter.getObjectMapper();
//        // 为mapper注册一个带有SerializerModifier的Factory，此modifier主要做的事情为：当序列化类型为array，list、set时，当值为空时，序列化成[]
//        mapper.setSerializerFactory(mapper.getSerializerFactory().withSerializerModifier(new MyBeanSerializerModifier()));
//        return converter;
//    }
//}
