package com.its.vds.stat.server.config;

import com.its.vds.stat.server.utils.SysUtils;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

@Getter
@Setter
@ToString
@Configuration
@ConfigurationProperties(prefix = "application")
public class ApplicationConfig {

    private String bootingTime;
    private boolean startSchedule;

	private String processId = "VDSSTAT";

	private String processName = "VDS STAT Server";

	@PostConstruct
	private void init() {
		this.startSchedule = false;
		this.bootingTime = SysUtils.getSysTimeStr();
	}
}
