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