You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
841 B
39 lines
841 B
package cc.niushuai.bastionserver.config; |
|
|
|
import lombok.Data; |
|
import org.springframework.beans.factory.annotation.Value; |
|
import org.springframework.stereotype.Component; |
|
|
|
/** |
|
* 设置静态参数初始化 |
|
* |
|
* @author: jeecg-boot |
|
*/ |
|
@Component |
|
@Data |
|
public class StaticConfig { |
|
|
|
@Value("${app.oss.accessKey}") |
|
private String accessKeyId; |
|
|
|
@Value("${app.oss.secretKey}") |
|
private String accessKeySecret; |
|
|
|
@Value(value = "${spring.mail.username}") |
|
private String emailFrom; |
|
|
|
// /** |
|
// * 签名密钥串 |
|
// */ |
|
// @Value(value = "${app.signatureSecret}") |
|
// private String signatureSecret; |
|
|
|
|
|
/*@Bean |
|
public void initStatic() { |
|
DySmsHelper.setAccessKeyId(accessKeyId); |
|
DySmsHelper.setAccessKeySecret(accessKeySecret); |
|
EmailSendMsgHandle.setEmailFrom(emailFrom); |
|
}*/ |
|
|
|
}
|
|
|