title: SpEL not supported in Spring annotation @Entry.base
body: <p>I use Spring Data LDAP and Spring Boot provides out of the box support for an embedded UnboundID server. However, when I use Spring Data LDAP's <code>@Entry</code> annotation, I need to specify a different <code>base</code> in the annotation based on whether I'm using the embedded UnboundID LDAP server, or a remote Active Directory server.</p>
  
  <p>I was attempting to do this with SpEL and profile-based properties by specifying:</p>
  
  <pre><code>@Entry(base = "${ldap.person.base}", ...)
  </code></pre>
  
  <p>Then I have an <code>application.propreties</code> with <code>ldap.person.base=OU=AD Person Base</code> and an <code>application-embedded.properties</code> with <code>ldap.person.base=OU=Embedded Person Base</code>.</p>
  
  <p>However, the <code>@Entry</code> annotation does not seem to support SpEL evaluation:</p>
  
  <blockquote>
    <p>javax.naming.InvalidNameException: Invalid name: ${ldap.person.base}</p>
  </blockquote>
  
  <p>There is an <a href="http://github.com/spring-projects/spring-ldap/issues/444" rel="nofollow noreferrer">open issue</a> in Spring LDAP to add support for this, but is there any workaround or some other way I can accomplish this until it is supported in Spring LDAP?</p>