dubbo启动消费者报错:No provider available for the service。。null
程序员文章站
2022-06-01 21:32:10
...
我遇到的问题是:
远程调用的注解需要指定版本号:
@Service
public class UserService {
@Reference(version="0.0.1", timeout = 5000, check= false)//这一行加上就不会报空了
TicketService ticketService;
public void hello(){
String ticket = ticketService.getTicket();
System.out.println("买到票了:"+ticket);
}
}