package com.example.todo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.Configuration;
import org.hibernate.validator.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

public class TodoConfiguration extends Configuration {
    @NotEmpty
    private String template;

    @NotEmpty
    private String defaultName = "Stranger";

    @NotNull
    private int maxSize;

    @JsonProperty
    public int getMaxSize() {
        return maxSize;
    }

    @JsonProperty
    public void setMaxSize(int maxSize) {
        this.maxSize = maxSize;
    }

    @JsonProperty
    public String getTemplate() {
        return template;
    }

    @JsonProperty
    public void setTemplate(String template) {
        this.template = template;
    }

    @JsonProperty
    public String getDefaultName() {
        return defaultName;
    }

    @JsonProperty
    public void setDefaultName(String defaultName) {
        this.defaultName = defaultName;
    }
}

@@ -114,61 +114,8 @@
 on;%0A
-import org.hibernate.validator.constraints.NotEmpty;%0A
 impo
@@ -215,112 +215,8 @@
 n %7B%0A
-    @NotEmpty%0A    private String template;%0A%0A    @NotEmpty%0A    private String defaultName = %22Stranger%22;%0A%0A
     
@@ -430,405 +430,7 @@
    %7D
-%0A%0A    @JsonProperty%0A    public String getTemplate() %7B%0A        return template;%0A    %7D%0A%0A    @JsonProperty%0A    public void setTemplate(String template) %7B%0A        this.template = template;%0A    %7D%0A%0A    @JsonProperty%0A    public String getDefaultName() %7B%0A        return defaultName;%0A    %7D%0A%0A    @JsonProperty%0A    public void setDefaultName(String defaultName) %7B%0A        this.defaultName = defaultName;%0A    %7D
 %0A%7D%0A

remove helloworld config fields