65 lines
1.0 KiB
Java
65 lines
1.0 KiB
Java
package com.luqj.common.config;
|
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
/**
|
|
* 邮件系统属性信息
|
|
*/
|
|
@Component
|
|
@ConfigurationProperties(prefix = "lu.admin.mail")
|
|
public class EmailProperties {
|
|
|
|
/**
|
|
* 是否smtp授权
|
|
*/
|
|
private Boolean smtpAuth = true;
|
|
|
|
/**
|
|
* 邮件系统smtp
|
|
*/
|
|
private String smtpHost = "smtp.163.com";
|
|
|
|
/**
|
|
* 默认用户
|
|
*/
|
|
private String user;
|
|
|
|
/**
|
|
* 用户密码
|
|
*/
|
|
private String password;
|
|
|
|
public Boolean getSmtpAuth() {
|
|
return smtpAuth;
|
|
}
|
|
|
|
public void setSmtpAuth(Boolean smtpAuth) {
|
|
this.smtpAuth = smtpAuth;
|
|
}
|
|
|
|
public String getSmtpHost() {
|
|
return smtpHost;
|
|
}
|
|
|
|
public void setSmtpHost(String smtpHost) {
|
|
this.smtpHost = smtpHost;
|
|
}
|
|
|
|
public String getUser() {
|
|
return user;
|
|
}
|
|
|
|
public void setUser(String user) {
|
|
this.user = user;
|
|
}
|
|
|
|
public String getPassword() {
|
|
return password;
|
|
}
|
|
|
|
public void setPassword(String password) {
|
|
this.password = password;
|
|
}
|
|
}
|