MatchmakerCloudSearchConfiguration.java 文件源码

java
阅读 25 收藏 0 点赞 0 评论 0

项目:mcs 作者:
@Bean(name = "jsonObjectMapper", autowire = Autowire.BY_NAME)
public ObjectMapper jsonObjectMapper() {
  ObjectMapper bean = new ObjectMapper(new JsonFactory());
  bean.disableDefaultTyping();
  bean.disable(SerializationFeature.FAIL_ON_EMPTY_BEANS);
  bean.disable(SerializationFeature.WRITE_NULL_MAP_VALUES);
  bean.disable(SerializationFeature.WRITE_EMPTY_JSON_ARRAYS);

  bean.setSerializationInclusion(JsonInclude.Include.NON_NULL);
  bean.setSerializationInclusion(JsonInclude.Include.NON_EMPTY);

  //bean.registerSubtypes(LookupResult.class);
  return bean;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号