package com.cf.imes.framework.ip.config;

import com.cf.imes.framework.ip.core.property.IPQueryProperties;
import com.cf.imes.framework.ip.core.service.IPQueryService;
import com.cf.imes.framework.ip.core.service.imp.IPQueryServiceImpl;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 * ip自动注册配置
 *
 * @author 晨丰科技
 */
@AutoConfiguration
@EnableConfigurationProperties(IPQueryProperties.class)
public class ChenfengIPAutoConfiguration {

    @Bean
    public IPQueryService ipQueryService() {
        return new IPQueryServiceImpl();
    }
}