Polish "Improve LDAP auto-configuration conditions"

Closes gh-13143
This commit is contained in:
Stephane Nicoll
2018-05-11 17:48:29 +02:00
parent dfceede0bc
commit 8e9a873787
2 changed files with 7 additions and 1 deletions

View File

@@ -4539,6 +4539,11 @@ URLs of your server in your application.properties, as shown in the following ex
If you need to customize connection settings, you can use the `spring.ldap.base` and
`spring.ldap.base-environment` properties.
A `LdapContextSource` is auto-configured based on these settings. If you need to customize
it, for instance to use a `PooledContextSource`, you can still inject the auto-configured
`LdapContextSource`. Make sure to flag your customized `ContextSource` as `@Primary` so
that the auto-configured `LdapTemplate` uses it.
[[boot-features-ldap-spring-data-repositories]]