错误重现:
Caused by: java.lang.IllegalStateException: Failed to check the status of the service alibaba.uer.service.UserService. No provider available for the service alibaba.uer.service.UserService from the url nacos://localhost:8848/org.apache.dubbo.registry.RegistryService?application=user-consumer&dubbo=2.0.2&init=false&interface=alibaba.uer.service
错误原因:
扫描不到包,或者包不存在等等
解决方案:
检查application.yml文件的scan-base-packeages是否和要扫描的包路径一致
经过检查发现,我的包原本是alibaba.user.servcie,然而文件中是如下: