spring中加载properties资料

spring中加载properties文件bean idpropertyConfigurervalue${url} /property namebase value

spring中加载properties文件

<bean id="propertyConfigurer"value="${url}" /><property name="base" value="${base}" /><property name="userDn" value="${userDn}" /><property name="password" value="${password}" /></bean>


ldap.properties文件:

url=ldap://61.xxx.xxx.xxx:389
base=o=mycom.com,c=cn
userDn=cn=root,o=mycom.com,c=cn
password=secret