org.zodiac.autoconfigure.security.SecurityConfigAutoConfiguration Maven / Gradle / Ivy
package org.zodiac.autoconfigure.security;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.zodiac.autoconfigure.security.condition.ConditionalOnSecurityConfigEnabled;
import org.zodiac.commons.constants.SystemPropertiesConstants;
@ConditionalOnSecurityConfigEnabled
@Order(value = Ordered.HIGHEST_PRECEDENCE)
@SpringBootConfiguration
@ConditionalOnClass(value = {org.zodiac.security.config.SecurityConfigInfo.class})
public class SecurityConfigAutoConfiguration {
public SecurityConfigAutoConfiguration() {
}
@Bean
@ConditionalOnMissingBean
@ConfigurationProperties(prefix = SystemPropertiesConstants.Zodiac.SPRING_SECURITY_PREFIX)
protected SecurityConfigProperties securityConfigProperties() {
return new SecurityConfigProperties();
}
}