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;
|
}
|