package com.muchinfo.mtp3century.configuration;

import com.muchinfo.mtp3century.service.IRedisInitService;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class InitRedisEnumData implements InitializingBean {
    @Resource
    private IRedisInitService iRedisInitService;

    /**
     * redis初始化字典、错误枚举数据
     */
    @Override
    public void afterPropertiesSet(){
        iRedisInitService.init();
    }
}
