All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.hippo4j.starter.config.UtilAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
package cn.hippo4j.starter.config;

import cn.hippo4j.starter.toolkit.inet.InetUtils;
import cn.hippo4j.starter.toolkit.inet.InetUtilsProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 * Util auto configuration.
 *
 * @author Spencer Gibb
 * @date 2021/11/12 21:34
 */
@EnableConfigurationProperties(InetUtilsProperties.class)
public class UtilAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public InetUtils hippo4JInetUtils(InetUtilsProperties properties) {
        return new InetUtils(properties);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy