spring main context

public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"applicationContext.xml","applicationContext-dubbo.xml"});
        context.start();
        OrderService orderService = (OrderService) context.getBean("orderService");
        String json = "{'source':'95','custelno':'','pasmid':'CBC8D8A800000001','userid':'','items':[{'skuo2oid':'','goodsid':22063,'skuid':34220,'goodsname':'多力黄金三益5L/桶*4桶','goodscount':1,'channel':27}],'wholesale':'2B'}";
        orderService.checkcoupon(json);
    }

posted @ 2015-08-12 15:17  ihanliu  阅读(212)  评论(0编辑  收藏  举报