[英]Spring:- what is the main difference between using @autowired annotation and using “autowire” in spring xml configuration?
Lately, one junior developer asked me this question:"is there difference between using @autowired annotation and using "autowire" in spring xml configuration?" 最近,一个初级开发人员问我这个问题:“在Spring xml配置中使用@autowired注释和使用“ autowire”之间有区别吗?”
I am not able to give him an specific answer.Please help me. 我无法给他具体答案。请帮助我。
No. Spring offers multiple way of wiring up components. 不。Spring提供了多种组件连接方式。 Depending on your system build, some may offer more advantages over other.
根据您的系统构建,某些功能可能会提供比其他功能更多的优势。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.