Dubbo不依赖spring启动单独启动

也可以只写个Main.main(args) 这种启动方法适用于服务的提供者使用

这种使用还是要配置spring-dubbo.xml (内容和以前无差别) ,这样启动main方法就会自动加载resource下面的文件做到脱离

ApplicationContext ss=new ClassPathXmlApplicationContext("xxx.xml");

resource下面的dubbo.properties 文件内容


猜你喜欢

转载自blog.csdn.net/tmeng521/article/details/80437309