类 EmbeddedLdapAutoConfiguration
- java.lang.Object
- org.springframework.boot.autoconfigure.ldap.embedded.EmbeddedLdapAutoConfiguration
@Configuration @EnableConfigurationProperties({LdapProperties.class,EmbeddedLdapProperties.class}) @ConditionalOnClass(com.unboundid.ldap.listener.InMemoryDirectoryServer.class) @ConditionalOnProperty(prefix="spring.ldap.embedded", name="base-dn") public class EmbeddedLdapAutoConfiguration extends Object
Auto-configuration
for Embedded LDAP.- 从以下版本开始:
- 1.5.0
构造器概要
构造器 构造器 说明 EmbeddedLdapAutoConfiguration(EmbeddedLdapProperties embeddedProperties, LdapProperties properties, org.springframework.context.ConfigurableApplicationContext applicationContext, org.springframework.core.env.Environment environment)
构造器详细资料
EmbeddedLdapAutoConfiguration
public EmbeddedLdapAutoConfiguration(EmbeddedLdapProperties embeddedProperties, LdapProperties properties, org.springframework.context.ConfigurableApplicationContext applicationContext, org.springframework.core.env.Environment environment)
方法详细资料
ldapContextSource
@Bean @DependsOn("directoryServer") @ConditionalOnMissingBean public org.springframework.ldap.core.ContextSource ldapContextSource()
directoryServer
@Bean public com.unboundid.ldap.listener.InMemoryDirectoryServer directoryServer() throws com.unboundid.ldap.sdk.LDAPException
- 抛出:
com.unboundid.ldap.sdk.LDAPException
close
@PreDestroy public void close()