Open GoogleCodeExporter opened 9 years ago
firefly里面叫@Inject,这个注释不填写任何参数作用就和@Autowire
d一样,是使用类型自动注入 的。
比如
@Inject
private BooService booService;
如果加了参数就是用组件id注入
@Inject("xxxService")
private XxxService xxxService;
Original comment by balduli...@gmail.com
on 2 Feb 2011 at 5:11
Original issue reported on code.google.com by
zhangsh...@163.com
on 12 Jan 2011 at 10:56