AgentConfig.java 607 B

123456789101112131415161718192021222324
  1. package com.fdkankan.agent.config;
  2. import lombok.Data;
  3. import org.springframework.beans.factory.annotation.Value;
  4. import org.springframework.cloud.context.config.annotation.RefreshScope;
  5. import org.springframework.context.annotation.Configuration;
  6. @Configuration
  7. @RefreshScope
  8. @Data
  9. public class AgentConfig {
  10. @Value("${agent.environment}")
  11. private String environment;
  12. @Value("${agent.sms.template-code}")
  13. private String smsTemplateCode;
  14. @Value("${agent.task.auth-exp-msg}")
  15. private String authExpMsg;
  16. @Value("${agent.task.auth-exp-day}")
  17. private Integer authExpDay;
  18. }