如何在spring中配置autowire

时间:2009-10-04 15:47:08

标签: java spring dependency-injection autowired

如何在spring中配置autowire

1 个答案:

答案 0 :(得分:11)

将上下文架构添加到配置XML并使用@Autowired注释:

http://static.springsource.org/spring/docs/2.5.x/reference/beans.html#beans-annotation-config