wl
2022-10-21 201ea73fb531ee30fd57465e210bd523eb10c95d
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 com.ycl.common.util;
 
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
 
/**
 * <p>
 * 类说明
 * </p>
 *
 * @author mg
 * @since 2022-10-09
 */
@Component
@ConfigurationProperties(prefix = "file")
@Data
public class PropertyValueUtil {
    @Value("${mail.host}")
    private String host;
    @Value("${mail.username}")
    private String username;
    @Value("${mail.authorizationCode}")
    private  String authorizationCode;
}