摘要: 使用手工注解方式有两种方式@Resource、@Autowired首先,引入注解所使用的Jar包 :common-annotations.jar然后在beans.xml中加入命名空间空间xmlns:context="http://www.springframework.org/schema/cont... 阅读全文
posted @ 2015-11-10 16:59 Bodi 阅读(553) 评论(0) 推荐(0) 编辑
摘要: Spring 还可以对基本属性和集合类型属性进行注入:public interface PersonIService { public String getBaseProperty(); public Set getSets(); public List getList(); public Prop... 阅读全文
posted @ 2015-11-10 11:34 Bodi 阅读(600) 评论(0) 推荐(0) 编辑