摘要:
引用Bean的属性值 从Spring3.0开始,可以通过#{beanName.beanProp}的方式方便地引用另一个bean的属性值1、不需要使用PropertyPlaceholderConfigurer。2、这里是井号 demo 1、xml配置实现 package test; import or 阅读全文
posted @ 2019-01-16 15:42
zhuangrunwei
阅读(596)
评论(0)
推荐(1)
摘要:
一、PropertyPlaceholderConfigurer spring提供的PropertyPlaceholderConfigurer实现类能够使Bean在配置时引用外部属性文件。 PropertyPlaceholderConfigurer实现了BeanFactoryPostProcessor 阅读全文
posted @ 2019-01-16 12:05
zhuangrunwei
阅读(450)
评论(0)
推荐(0)

浙公网安备 33010602011771号