linwe
2024-08-09 8b7258c9427882bb1798f1502eaa35184c6e374e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package org.springblade.modules.email.config;
 
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
 
/**
 * @author crush
 */
@Data
@Component
@ConfigurationProperties(prefix = "spring.mail")
public class MailProperties {
    /**  * 用户名 */
    private String username;
    /** * 授权码 */
    private String password;
    /** * host */
    private String host;
    /** * 端口 */
    private Integer port;
    /*** 协议 */
    private String protocol;
    /** * 默认编码*/
    private String defaultEncoding;
}