package com.kingdee.eas.custom.integration.apimgt.config;

import com.kingdee.eas.custom.integration.apimgt.sync.ApiRegistrySyncRunner;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;

@Configuration
public class SyncConfig {

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

    @Bean
    public ApiRegistrySyncRunner apiRegistrySyncRunner(RequestMappingHandlerMapping handlerMapping) {
        logger.info("ApiRegistrySyncRunner ÒÑ×¢²á");
        return new ApiRegistrySyncRunner(handlerMapping);
    }
}
