SpringBoot 2 migration ConfigurationProperties Failed to bind property to String[]

I just migrate from Spring boot 1.5.8 to 2.0.0

I solved most of migration errors, but I have no idea for this:


public class LdapConfiguration {


@ConfigurationProperties(prefix = "ldap")

public LdapContextSource contextSource() {

return new LdapContextSource();


@Bean(name = "ldapTemplate")

public LdapTemplate ldapTemplate(ContextSource contextSource) {

return new LdapTemplate(contextSource);



My custom values :


Error :


Failed to bind properties under 'ldap.urls' to java.lang.String[]:

Reason: Unable to get value for property urls


Update your application's configuration

looks like it can't bind my string value ldap.urls to String[], I tried with 2 values in my property separated by coma.

Any idea ?...

Read More »

By: StackOverFlow - Wednesday, 14 March

Related Posts

  • Older News
  • Lazy DB migration using flyway StackOverFlow (Today) - We are using flyway for migration of our DB which literally have thousands of schemas(a.k.a Silos). When we deploy a new build, the DB migration may take 10 minutes even...