package org.synyx.urlaubsverwaltung.mail;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;

@Validated
@ConfigurationProperties(prefix = "uv.mail")
public class MailProperties {

    @Email
    @NotEmpty
    private String sender;

    @Email
    @NotEmpty
    private String administrator;

    @URL
    private String applicationUrl;

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getAdministrator() {
        return administrator;
    }

    public void setAdministrator(String administrator) {
        this.administrator = administrator;
    }

    public String getApplicationUrl() {
        return applicationUrl;
    }

    public void setApplicationUrl(String applicationUrl) {
        this.applicationUrl = applicationUrl;
    }
}

@@ -36,16 +36,64 @@
 .mail;%0A%0A
+import org.hibernate.validator.constraints.URL;%0A
 import o

Revert "Remove not used imports"