21222324252627
import io.dropwizard.setup.Environment; public class ExampleApplication extends Application<ExampleConfiguration> { @Override public void initialize(Bootstrap<ExampleConfiguration> bootstrap) { bootstrap.addBundle(new CachingBundle()); }
import com.yammer.dropwizard.config.Environment; public class ExampleService extends Service<ExampleConfiguration> { @Override public void initialize(Bootstrap<ExampleConfiguration> bootstrap) { bootstrap.addBundle(new CachingBundle()); }