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

org.zodiac.autoconfigure.bootstrap.loadbalancer.AppLoadBalancerConfigAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
package org.zodiac.autoconfigure.bootstrap.loadbalancer;

import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.zodiac.autoconfigure.bootstrap.condition.ConditionalOnSpringCloudBootstrapDisabled;
import org.zodiac.commons.constants.SystemPropertiesConstants;

@SpringBootConfiguration
@ConditionalOnSpringCloudBootstrapDisabled
public class AppLoadBalancerConfigAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean
    @ConfigurationProperties(prefix = SystemPropertiesConstants.Zodiac.SPRING_BOOTSTRAP_LOADBALANCER_PREFIX)
    protected AppLoadBalancerProperties appLoadBalancerProperties() {
        return new AppLoadBalancerProperties();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy