dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

Spring injection failed when Consumer starts before Provider, i use @Resource to inject service into Controller.

Open karenbj13 opened this issue 8 years ago • 1 comments

消费端是spring项目,在Controller中通过@Resource注入provider类。 如果provider没有注册,启消费端失败:spring 初始化失败,因为没有provider

karenbj13 avatar Jan 25 '18 14:01 karenbj13

We all know spring @Resource needs a bean for injection. But is this has sth to do with dubbo.

chickenlj avatar Jan 29 '18 04:01 chickenlj