All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.ilyalisov.mail.config.MailServiceProperties Maven / Gradle / Ivy

package io.github.ilyalisov.mail.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.autoconfigure.mail.MailProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

import java.util.List;

@Configuration
@Getter
@Setter
@Primary
@ConfigurationProperties(prefix = "spring.mail")
public class MailServiceProperties extends MailProperties {

    /**
     * Vendor of mail service. Could be `mail.ru` or `gmail.com`.
     * If not set, `spring.mail.*` properties are used.
     */
    private String vendor;

    /**
     * List of templates for email.
     */
    private List templates;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy