ProcessConfig.java 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package com.its.op.config;
  2. import com.its.op.utils.SysUtils;
  3. import lombok.Getter;
  4. import lombok.Setter;
  5. import lombok.ToString;
  6. import lombok.extern.slf4j.Slf4j;
  7. import org.springframework.boot.context.properties.ConfigurationProperties;
  8. import org.springframework.context.annotation.Configuration;
  9. import javax.annotation.PostConstruct;
  10. @Slf4j
  11. @Getter
  12. @Setter
  13. @ToString
  14. @Configuration
  15. @ConfigurationProperties(prefix = "application.process")
  16. public class ProcessConfig {
  17. private String bootingDateTime;
  18. private boolean startSchedule;
  19. private String id = "WOP01";
  20. private String name = "ITS Operating Server";
  21. private boolean prepared = true;
  22. private String crontab = "10 0/5 * * * *";
  23. private String userId = "admin";
  24. private String userPswd = "1234";
  25. private String centerId = "L08";
  26. private String regionCode = "228";
  27. private String regionName = "용인시";
  28. @PostConstruct
  29. private void init() {
  30. this.startSchedule = false;
  31. this.bootingDateTime = SysUtils.getSysTimeStr();
  32. log.info("{}", this);
  33. }
  34. }