org.apereo.cas.config.CasRestfulCloudConfigBootstrapAutoConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cas-server-support-configuration-cloud-rest Show documentation
Show all versions of cas-server-support-configuration-cloud-rest Show documentation
cas-server-support-configuration-cloud-rest
package org.apereo.cas.config;
import org.apereo.cas.configuration.features.CasFeatureModule;
import org.apereo.cas.util.spring.boot.ConditionalOnFeatureEnabled;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.cloud.bootstrap.config.PropertySourceLocator;
import org.springframework.context.annotation.Bean;
/**
* This is {@link CasRestfulCloudConfigBootstrapAutoConfiguration}.
*
* @author Misagh Moayyed
* @since 6.2.0
*/
@ConditionalOnFeatureEnabled(feature = CasFeatureModule.FeatureCatalog.CasConfiguration, module = "rest")
@AutoConfiguration
public class CasRestfulCloudConfigBootstrapAutoConfiguration {
@Bean
@ConditionalOnMissingBean(name = "restfulPropertySourceLocator")
public PropertySourceLocator restfulPropertySourceLocator() {
return new RestfulPropertySourceLocator();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy