Skip to content

synCacheUse

jwpttcg66 edited this page Apr 18, 2017 · 3 revisions

同步缓存使用手册

使用例子

    OrderService orderService = (OrderService) classPathXmlApplicationContext.getBean("orderService");
    EntityServiceProxyFactory entityServiceProxyFactory = (EntityServiceProxyFactory) classPathXmlApplicationContext.getBean("entityServiceProxyFactory");
    orderService = entityServiceProxyFactory.createProxyService(orderService);

    Order order = new Order();
    order.setUserId(TestConstants.userId);
    order.setId((long) i);
    order.setStatus("测试插入" + i);
    orderService.insertOrder(order);
Clone this wiki locally