Skip to content

Instantly share code, notes, and snippets.

@john-nash-rs
Created July 12, 2018 12:30
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 john-nash-rs/5c7574398edda15eed46b49750f2b249 to your computer and use it in GitHub Desktop.
Save john-nash-rs/5c7574398edda15eed46b49750f2b249 to your computer and use it in GitHub Desktop.
import io.dropwizard.Application;
import io.dropwizard.setup.Environment;
/**
* Created by harshvardhan on 12/07/18.
*/
public class MyApplication extends Application<MyConfiguration> {
public static void main(String[] args) throws Exception {
new MyApplication().run(args);
}
public void run(MyConfiguration myConfiguration, Environment environment) throws Exception {
final MyResource resource = new MyResource();
environment.jersey().register(resource);
System.out.println("Value from dev.yml is "+myConfiguration.getUrl());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment