当一切的一切都按照官方文档配置好以后,启动provider端服务,运行正常
可是当启动测试类的时候发现不小的问题,原因居然是
Failed to check the status of the service com.atguigu.ticket.service.TicketService. No provider available for the service com.atguigu.ticket.service.TicketService from the url zookeeper://192.168.234.6:2181/com.alibaba.dubbo.registry.RegistryService?application=consumer-user&dubbo=2.6.2&interface=com.atguigu.ticket.service.TicketService&methods=getTicket&pid=7184®ister.ip=192.168.56.1&side=consumer×tamp=1544749825969 to the consumer 192.168.56.1 use dubbo version 2.6.2
其实只需要在providerApplication启动类中添加@EnableDubbo重启即可