什么是" JacksonInitializer"在Spring Boot?

时间:2017-07-08 15:30:55

标签: spring-boot jackson

我在org.springframework.boot.autoconfigure.BackgroundPreinitializer中找到了代码:

runSafely(new JacksonInitializer());

private static class JacksonInitializer implements Runnable {

    @Override
    public void run() {
        Jackson2ObjectMapperBuilder.json().build();
    }

}

这里构建的ObjectMapper似乎已被删除,那么这段代码的功能是什么?

谢谢!

0 个答案:

没有答案