摘要: spring的xml配置文件中某个中的property的用法是什么样的?/spring-beans/src/test/java/org/springframework/beans/factory/xml/XmlBeanCollectionTests.java/spring-beans/src/tes... 阅读全文
posted @ 2014-10-02 17:07 唾手可得的树 阅读(1419) 评论(0) 推荐(0) 编辑
摘要: 一般情况下,spring容器中的大部分Bean都是单实例的,所以一般无须通过@Repository、@Service、@Component等注解的value属性为Bean指定名称,也无须使用@Qualifier按名称进行注入。@Autowired的用法有以下几种:对类变量进行标注@Autowired... 阅读全文
posted @ 2014-10-02 15:58 唾手可得的树 阅读(256) 评论(0) 推荐(0) 编辑
摘要: org.springframework.context.annotation.ComponentScanParserTests.componentScanWithAutowiredQualifier()example.scannable.AutowiredQualifierFooService.fo... 阅读全文
posted @ 2014-10-02 12:02 唾手可得的树 阅读(498) 评论(0) 推荐(0) 编辑
摘要: 5.9 基于注解的容器配置 阅读全文
posted @ 2014-10-02 10:50 唾手可得的树 阅读(122) 评论(0) 推荐(0) 编辑