12345678910111213141516171819202122 |
- <?xml version="1.0" encoding="UTF-8"?>
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:ldap="http://www.springframework.org/schema/ldap"
- xsi:schemaLocation="http://www.springframework.org/schema/beans
- https://www.springframework.org/schema/beans/spring-beans.xsd
- http://www.springframework.org/schema/ldap
- https://www.springframework.org/schema/ldap/spring-ldap.xsd">
- <ldap:context-source
- url="ldap://localhost:10389"
- base="ou=yiidata,dc=yiidata,dc=com"
- username="uid=admin,ou=system"
- password="secret" />
- <ldap:ldap-template id="ldapTemplate" />
- <bean id="personRepo" class="com.primeton.poctag.service.ldap.impl.PersonRepoImpl">
- <property name="ldapTemplate" ref="ldapTemplate" />
- </bean>
- </beans>
|