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(); } }