摘要:
Spring 学习ApplicationContext 继承了Beanfactoy;是对Beanfactory的更为宽泛的实现。依赖注入的方式:1、构造函数;2、Setter方法注入(需要遵循javabean的规范)。配置简写一、构造器注入:1)常量值简写:<constructor-arg index="0" value="常量"/>全写:<constructor-arg index="0"><value>常量</value></constructor-arg>2)引用简写: 阅读全文
posted @ 2012-03-06 17:37
咖喱辣椒
阅读(225)
评论(0)
推荐(0)
浙公网安备 33010602011771号