站在巨人的肩膀上搬砖

导航

 

java

@Component
@Order(value = 1)
public class RoleStartRunner implements CommandLineRunner {
    private static AppDataProcessor processor = new AppDataProcessor();

    @Autowired
    private ProducerService producerService;


    @Override
    public void run(String... strings) throws Exception {
        ReadConditionByRedis.loadCrfMapping();
        List<String> keys = new ArrayList<>();
        keys.add("detail_schema");
        keys.add("etl_data_count");
        for (String key : keys){
            RedisUtil.deleteKey(key);
        }
        processor.addAllRole();
    }
}

posted on 2021-11-04 11:58  站在巨人的肩膀上搬砖  阅读(174)  评论(0)    收藏  举报