dubbo开发注入失败

dubbo开发时注入报错,以下是错误信息


Description:A component required a bean of type 'com.sangular.dolphin.api.item.AttributeServiceRemote' that could not be found.Action:Consider defining a bean of type 'com.sangular.dolphin.api.item.AttributeServiceRemote' in your configuration.Process finished with exit code 1

原因是注入的注解使用了@Resource,应该使用dubbo 的 com.alibaba.dubbo.config.annotation.Reference 注解。


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部