This bundle trims config values of dropwizard YAML config file.
This makes it easier to make the application not break due to manual errors when sleepy DevOps adds a space to a config value
-
Clone the source:
git clone github.com/vivekkothari/dropwizard-trim
-
Build
mvn install
- Use the following maven dependency:
<dependency>
<groupId>com.github.vivekkothari</groupId>
<artifactId>dropwizard-trim</artifactId>
<version>1.2.4</version>
</dependency>
@Override
public void initialize(final Bootstrap...) {
bootstrap.addBundle(new ConfigTrimmingBundle());
}