package com.ctrip.zeus.startup;

import com.ctrip.zeus.service.update.SlbServerConfManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * Created by fanqq on 2016/3/22.
 */
public class UpdateConfig {
    @Resource
    private SlbServerConfManager slbServerConfManager;

    private final Logger logger = LoggerFactory.getLogger(UpdateConfig.class);

    @PostConstruct
    private void init() {
        try {
            slbServerConfManager.update();
        } catch (Exception e) {
            logger.error("[StartUp] Update Config Failed.", e);
        }
    }
}

@@ -141,16 +141,65 @@
 Factory;
+%0Aimport org.springframework.stereotype.Component;
 %0A%0Aimport
@@ -308,16 +308,43 @@
 22.%0A */%0A
+@Component(%22updateConfig%22)%0A
 public c

fix UpdateConfig