摘要: 在spring容器管理的Bean中,必须仅且只有一个无重复的ID。 一般情况下,配置一个bean时,需要指定它的ID属性作为bean的名称。 <bean id="hello" class="com.learnSpring.hellWorld"/> 用户可以通过getBean(“hello”)获取he 阅读全文
posted @ 2017-10-18 10:16 c++c鸟 阅读(169) 评论(0) 推荐(0) 编辑