111
This commit is contained in:
1 parent
81eca8933a
commit
345f906c35
540 files changed
+494222
-90
No files matched your search
@@ -0,0 +1,64 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user