• By default, dependencies marked with the @Autowired annotation are treated as required.

    默认地,标有@Autowired注解依赖被认为必须的。

    youdao

  • For example, the excerpt below depicts a field that should be autowired with a qualified candidate among those that match by type.

    例如下面这个摘录则描绘了一个应该通过名字匹配得到的结果合格的对象进行自动装配。

    youdao

  • In fact, autowired methods do not have to be 'setter' methods and can even accept multiple parameters. The following is perfectly acceptable.

    实际上aotowired方法并不一定要是setter方法,且可以接受多个参数

    youdao

  • To use this service in an application, all we need to do is to use Spring's autowire mechanism and annotate fields where this bean should be injected with @Autowired annotation.

    应用中使用服务我们只需利用Spring自动装配(autowire机制,在需要注入该服务的属性上使用@Autowired注解就可以了。

    youdao

  • To use this service in an application, all we need to do is to use Spring's autowire mechanism and annotate fields where this bean should be injected with @Autowired annotation.

    应用中使用服务我们只需利用Spring自动装配(autowire机制,在需要注入该服务的属性上使用@Autowired注解就可以了。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定