コード例 #1
0
 @SuppressWarnings("unused")
 public static ObjectMapper buildObjectMapperForDeserialization() {
   final ObjectMapper mapper = new ObjectMapper();
   InventoryJacksonConfig.configure(mapper);
   mapper.addMixIn(CanonicalPath.class, CanonicalPathMixin.class);
   return mapper;
 }
コード例 #2
0
 @Override
 protected ObjectMapper buildObjectMapperForSerialization() {
   final ObjectMapper mapper = new ObjectMapper();
   InventoryJacksonConfig.configure(mapper);
   mapper.addMixIn(CanonicalPath.class, CanonicalPathMixin.class);
   return mapper;
 }