Add samples to build
Issue gh-610
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
package org.springframework.ldap.samples.plain.web;
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLEncoder;
|
||||
|
||||
import javax.naming.Name;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.ldap.core.DirContextOperations;
|
||||
import org.springframework.ldap.samples.plain.dao.PersonDao;
|
||||
@@ -14,10 +20,6 @@ import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import javax.naming.Name;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLEncoder;
|
||||
|
||||
/**
|
||||
* Default controller.
|
||||
*
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
<beans profile="default">
|
||||
<!-- Populates the LDAP server with initial data -->
|
||||
<bean class="org.springframework.ldap.test.LdifPopulator" depends-on="embeddedLdapServer">
|
||||
<bean id="ldifPopulator" class="org.springframework.ldap.test.LdifPopulator" depends-on="embeddedLdapServer">
|
||||
<property name="contextSource" ref="contextSource" />
|
||||
<property name="resource" value="classpath:/setup_data.ldif" />
|
||||
<property name="base" value="${sample.ldap.base}" />
|
||||
@@ -39,8 +39,8 @@
|
||||
This is for test and demo purposes only - EmbeddedLdapServerFactoryBean launches an in-process
|
||||
LDAP server.
|
||||
-->
|
||||
<bean id="embeddedLdapServer" class="org.springframework.ldap.test.EmbeddedLdapServerFactoryBean">
|
||||
<property name="partitionName" value="example"/>
|
||||
<bean id="embeddedLdapServer" class="org.springframework.ldap.test.unboundid.EmbeddedLdapServerFactoryBean">
|
||||
<property name="partitionName" value="jayway"/>
|
||||
<property name="partitionSuffix" value="${sample.ldap.base}" />
|
||||
<property name="port" value="18880" />
|
||||
</bean>
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
This is for test and demo purposes only - EmbeddedLdapServerFactoryBean launches an in-process
|
||||
LDAP server.
|
||||
-->
|
||||
<bean id="embeddedLdapServer" class="org.springframework.ldap.test.EmbeddedLdapServerFactoryBean">
|
||||
<property name="partitionName" value="example"/>
|
||||
<bean id="embeddedLdapServer" class="org.springframework.ldap.test.unboundid.EmbeddedLdapServerFactoryBean">
|
||||
<property name="partitionName" value="jayway"/>
|
||||
<property name="partitionSuffix" value="${sample.ldap.base}" />
|
||||
<property name="port" value="18880" />
|
||||
</bean>
|
||||
|
||||
Reference in New Issue
Block a user