org.zodiac.autoconfigure.context.ImportPropertySourceAutoConfiguration Maven / Gradle / Ivy
package org.zodiac.autoconfigure.context;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.zodiac.core.context.annotation.ImportPropertySourcePostProcessor;
import org.zodiac.core.context.annotation.ImportPropertySourcesPostProcessor;
@SpringBootConfiguration
@Order(Ordered.HIGHEST_PRECEDENCE)
public class ImportPropertySourceAutoConfiguration {
@Bean
@ConditionalOnMissingBean
protected ImportPropertySourcePostProcessor importPropertySourcePostProcessor() {
return new ImportPropertySourcePostProcessor();
}
@Bean
@ConditionalOnMissingBean
protected ImportPropertySourcesPostProcessor importPropertySourcesPostProcessor() {
return new ImportPropertySourcesPostProcessor();
}
}