简体   繁体   English

如何在spring中配置autowire

[英]how do I configure autowire in spring

如何在spring中配置autowire

Add the context schema to your configuration XML and use the @Autowired annotation: 将上下文模式添加到配置XML并使用@Autowired注释:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM