标签: java spring dependency-injection autowired
如何在spring中配置autowire
答案 0 :(得分:11)
将上下文架构添加到配置XML并使用@Autowired注释:
http://static.springsource.org/spring/docs/2.5.x/reference/beans.html#beans-annotation-config