I'll understand you shpek to me again » 我会理解你shpek我再次 Autowired » 自动装配 We all like his lessons because they are very interesting. » 我们都喜欢他的课,因为他们是非常有趣的。
基于6个网页-相关网页
idea autowired 别人的实体
By default, dependencies marked with the @Autowired annotation are treated as required.
默认地,标有@Autowired注解的依赖被认为是必须的。
For example, the excerpt below depicts a field that should be autowired with a qualified candidate among those that match by type.
例如,下面这个摘录则描绘了一个域,它应该和通过名字匹配得到的结果中合格的对象进行自动装配。
In fact, autowired methods do not have to be 'setter' methods and can even accept multiple parameters. The following is perfectly acceptable.
实际上,aotowired方法并不一定要是setter方法,且可以接受多个参数。
应用推荐