| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- package com.its.op.config;
- import com.its.op.utils.SysUtils;
- import lombok.Getter;
- import lombok.Setter;
- import lombok.ToString;
- import lombok.extern.slf4j.Slf4j;
- import org.springframework.boot.context.properties.ConfigurationProperties;
- import org.springframework.context.annotation.Configuration;
- import javax.annotation.PostConstruct;
- @Slf4j
- @Getter
- @Setter
- @ToString
- @Configuration
- @ConfigurationProperties(prefix = "application.process")
- public class ProcessConfig {
- private String bootingDateTime;
- private boolean startSchedule;
- private String id = "WOP01";
- private String name = "ITS Operating Server";
- private boolean prepared = true;
- private String crontab = "10 0/5 * * * *";
- private String userId = "admin";
- private String userPswd = "1234";
- private String centerId = "L08";
- private String regionCode = "228";
- private String regionName = "용인시";
- @PostConstruct
- private void init() {
- this.startSchedule = false;
- this.bootingDateTime = SysUtils.getSysTimeStr();
- log.info("{}", this);
- }
- }
|