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

apollo.spring.boot.ApolloAutoConfiguration Maven / Gradle / Ivy

The newest version!
package apollo.spring.boot;

import apollo.spring.config.ConfigPropertySourcesProcessor;
import apollo.spring.config.PropertySourcesConstants;
import apollo.spring.config.PropertySourcesProcessor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED)
@ConditionalOnMissingBean(PropertySourcesProcessor.class)
public class ApolloAutoConfiguration {

  @Bean
  public ConfigPropertySourcesProcessor configPropertySourcesProcessor() {
    return new ConfigPropertySourcesProcessor();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy