I'm playing around with Spring Boot 2.0.0M2, trying to create a CLI application, not a web one. My problem is that even including
compile 'org.springframework.boot:spring-boot-starter'
compile 'org.springframework.boot:spring-boot-starter-json'
in my build, ObjectMapper is not created by Boot because
Bean method 'jacksonObjectMapper' not loaded because @ConditionalOnClass did not find required class 'org.springframework.http.converter.json.Jackson2ObjectMapperBuilder'
What's the best practice when you want to have Spring Boot instance and configure Jackson but don't want to start a web server?
ObjectMapper
and it can be tuned by several well documented configuration properties. If I create theObjectMapper
as the other question propose, all of this should be done by hand, if I'm not mistaken. – Cheeky