package com.fjhx.mail.config;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MailServiceConfig {

    /**
     * 国内邮箱服务url
     */
    public static String urlPrefix;

    /**
     * 国外邮箱服务url
     */
    public static String abroadUrlPrefix;

    @Value("${mail.urlPrefix}")
    public void setUrlPrefix(String urlPrefix) {
        MailServiceConfig.urlPrefix = urlPrefix;
    }

    @Value("${mail.abroadUrlPrefix}")
    public void setAbroadUserUrlPrefix(String abroadUserUrlPrefix) {
        MailServiceConfig.abroadUrlPrefix = abroadUserUrlPrefix;
    }

}
