Java tutorial
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package andy.zhang.dubbo.consumer; import andy.zhang.dubbo.service.IProcessData; import org.springframework.context.support.ClassPathXmlApplicationContext; /** * * @author guohuazhang */ public class AppClient { public static void main(String[] args) { ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext( new String[] { "applicationConsumer.xml" }); context.start(); IProcessData demoService = (IProcessData) context.getBean("demoService"); System.out.println(demoService.hello("world ")); } }