我如何在春季配置自动装配 [英] how do I configure autowire in spring
本文介绍了我如何在春季配置自动装配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在春季配置自动接线
how do I configure autowire in spring
推荐答案
将上下文架构添加到配置XML并使用@Autowired批注:
Add the context schema to your configuration XML and use the @Autowired annotation:
http://static. springsource.org/spring/docs/2.5.x/reference/beans.html#beans-annotation-config
这篇关于我如何在春季配置自动装配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文