JSON.configure(Consumer<ObjectMapper>) 추가

master
mjkhan21 1 year ago
parent 7dff172e39
commit 2a7cf3d7e0

@ -2,6 +2,7 @@ package cokr.xit.foundation.data;
import java.io.InputStream; import java.io.InputStream;
import java.util.Set; import java.util.Set;
import java.util.function.Consumer;
import java.util.function.UnaryOperator; import java.util.function.UnaryOperator;
import com.fasterxml.jackson.core.JsonParser.Feature; import com.fasterxml.jackson.core.JsonParser.Feature;
@ -44,6 +45,16 @@ public class JSON extends AbstractComponent {
return this; return this;
} }
/**JSON / ObjectMapper .
* @param configurer ObjectMapper function
* @return JSON
*/
public JSON configure(Consumer<ObjectMapper> configurer) {
if (configurer != null)
configurer.accept(getObjectMapper());
return this;
}
/** JSON Filter .<br /> /** JSON Filter .<br />
* {@code @JsonFilter("필터 아이디")} . * {@code @JsonFilter("필터 아이디")} .
* @param id * @param id

Loading…
Cancel
Save