123456789101112131415161718192021222324 |
- package com.fdkankan.agent.config;
- import lombok.Data;
- import org.springframework.beans.factory.annotation.Value;
- import org.springframework.cloud.context.config.annotation.RefreshScope;
- import org.springframework.context.annotation.Configuration;
- @Configuration
- @RefreshScope
- @Data
- public class AgentConfig {
- @Value("${agent.environment}")
- private String environment;
- @Value("${agent.sms.template-code}")
- private String smsTemplateCode;
- @Value("${agent.task.auth-exp-msg}")
- private String authExpMsg;
- @Value("${agent.task.auth-exp-day}")
- private Integer authExpDay;
- }
|