class EsGoodsIndexInitRunner implements ApplicationRunner {

    @Autowired
    private EsGoodsIndexService esGoodsIndexService;


    @Override
    public void run(ApplicationArguments args) {<FILL_FUNCTION_BODY>}
}

        try {
            esGoodsIndexService.initIndex();
        } catch (Exception e) {
            log.error("检测ES商品索引失败", e);
        }
    
<no_super_class>