No provider available for the service com.xx.page.service.ItemPageService from the url zookeeper://192.168.25.128:2181/com.alibaba.dubbo.registry.RegistryService?application=xx-manager-web&dubbo=2.8.4&interface=com.xx.page.service.ItemPageService&methods=genItemHtml&pid=9580&revision=1.0-SNAPSHOT&side=consumer×tamp=1554981219536 to the consumer 169.254.82.56 use dubbo version 2.8.4
得到类似的异常,再dubbo上找不到服务引起的异常,仔细检查后发现
import org.springframework.stereotype.Service;
@Service
public class ItemPageServiceImpl implements ItemPageService {
//...
}
引用的@Service导入的包错了
应该是
import com.alibaba.dubbo.config.annotation.Service;
本文详细解析了在使用Dubbo框架时遇到的服务不可用异常,深入探讨了@Service注解包路径错误导致的问题,并提供了正确的配置解决方案。
1008

被折叠的 条评论
为什么被折叠?



