0

In dropwizard, what are the options to make the configuration object being accessible in the application (not just resource object)? Thanks.

public class TestConfig extends Configuration {
    @JsonProperty String test;
}

public class HelloWorldApplication extends Application<TestConfig> {
    @Override
    public void run(TestConfig configuration, Environment environment) {
    }
}

0 Answers0