Dubbo不依赖spring启动单独启动

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

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

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

resource下面的dubbo.properties 文件内容


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章