I write demo through nacos's sdk. There is an error exist in sample code.
NamingService naming = NamingFactory.createNaming(System.getProperty("serveAddr"));
naming.subscribe("nacos.test.3", event -> {
if (event instanceof NamingEvent) {
System.out.println(((NamingEvent) event).getServceName());
System.out.println(((NamingEvent) event).getInstances());
}
});
There is no method getServceName for class NamingEvent.
I write demo through nacos's sdk. There is an error exist in sample code.
There is no method getServceName for class NamingEvent.