本文共 420 字,大约阅读时间需要 1 分钟。
Navicat创建存储过程
Mybatis调用存储过程
statementType必须设置为CALLABLE
Integer createUserTable(Mapparams);
测试:
Mapparams=new HashMap<>(); params.put("id", 5); userDao.createUserTable(params); System.out.println(params.get("result"));
发现成功的返回了result结果。
参考: