Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.Configuration;
import io.dropwizard.db.DataSourceFactory;
* Created by harshvardhan on 12/07/18.
public class MyConfiguration extends Configuration {
private String url;
private DataSourceFactory database = new DataSourceFactory();
public String getUrl() {
return url;
public void setUrl(String url) {
this.url = url;
public DataSourceFactory getDataSourceFactory() {
return database;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment