hessian调用中断会怎样

    xiaoxiao2026-05-05  4

    public int updateWeiXinOpenId(BigDecimal userCode,String weixinOpenidTwo) throws Exception {

            UserServiceMapper userServiceMapper = writableSQLSession.getMapper(UserServiceMapper.class);

            userServiceMapper.updateWeinXinOpenIdTwo(userCode, "21332");         Thread.sleep(1000 * 60);

            return userServiceMapper.updateWeinXinOpenIdTwo(userCode, weixinOpenidTwo);

    }

    hessian client调用服务端执行到 Thread.sleep(1000 * 60);,断开调用userServiceMapper.updateWeinXinOpenIdTwo(userCode, weixinOpenidTwo)也会执行,有图为证:

    转载请注明原文地址: https://ju.6miu.com/read-1309391.html
    最新回复(0)