package com.bcxin.risk.startup;

import com.bcxin.risk.common.service.ScheduleService;
import com.bcxin.risk.sys.resources.ConfigResources;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * 清理redis缓存
 * @author 罗鹏
 */
@Component
public class InitConfig {

	@Autowired
	private ScheduleService scheduleService;

	/**
	 *
	 * <b>Function </b> 初始化环境，定位当前系统的环境
	 *
	 * @author LuoPeng
	 * @date 2016年12月20日 下午8:52:24
	 */
	@PostConstruct
	private void initConfig(){
		/* 初始化 */
		ConfigResources.init();
		scheduleService.reloadSystemConfig();
	}
	
}