Skip to content

Instantly share code, notes, and snippets.

@knalli
Created February 5, 2014 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knalli/8831917 to your computer and use it in GitHub Desktop.
Save knalli/8831917 to your computer and use it in GitHub Desktop.
Spring Integration 3 + Jackson 2 + Joda mappings
@Configuration
public class Config {
@Bean
public JsonObjectMapper<?> jsonObjectMapper() {
final ObjectMapper mapper = new ObjectMapper();
mapper.registerModule(new JodaModule());
return new Jackson2JsonObjectMapper(mapper);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment