package org.synyx.urlaubsverwaltung.mail.config;

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

import javax.validation.constraints.NotEmpty;

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

    @NotEmpty
    private String sender;

    @NotEmpty
    private String administrator;

    @NotEmpty
    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;
    }
}

@@ -43,16 +43,64 @@
 onfig;%0A%0A
+import org.hibernate.validator.constraints.URL;%0A
 import o
@@ -167,16 +167,16 @@
 erties;%0A
-
 import o
@@ -228,16 +228,59 @@
 dated;%0A%0A
+import javax.validation.constraints.Email;%0A
 import j
@@ -435,16 +435,27 @@
 ties %7B%0A%0A
+    @Email%0A
     @Not
@@ -484,24 +484,35 @@
 ng sender;%0A%0A
+    @Email%0A
     @NotEmpt
@@ -549,32 +549,27 @@
 ator;%0A%0A    @
-NotEmpty
+URL
 %0A    private

Add uv.mail validation with email and notempty