In your existing code, the ObjectMapper is hard-wired to a new one created in ConfigurationPlaceholderConfigurer instead of relying on the ObjectMapperFactory in the Dropwizard Environment. This change makes the ConfigurationPlaceholderConfigurer use an ObjectMapper obtained from the Dropwizard Environment.
In your existing code, the ObjectMapper is hard-wired to a new one created in ConfigurationPlaceholderConfigurer instead of relying on the ObjectMapperFactory in the Dropwizard Environment. This change makes the ConfigurationPlaceholderConfigurer use an ObjectMapper obtained from the Dropwizard Environment.