使用现代(大约2012年)SpringJDBC模板调用存储过程的正确方法是什么?比如说,我有一个存储过程,它同时声明了IN和OUT参数,如下所示:mypkg.doSomething(idOUTint,nameINString,dateINDate)我遇到过基于CallableStatementCreator的方法,我们必须显式注册IN和OUT参数。考虑JdbcTemplate类中的以下方法:publicMapcall(CallableStatementCreatorcsc,ListdeclaredParameters)当然,我知道我可以这样使用它:ListdeclaredParamet
使用现代(大约2012年)SpringJDBC模板调用存储过程的正确方法是什么?比如说,我有一个存储过程,它同时声明了IN和OUT参数,如下所示:mypkg.doSomething(idOUTint,nameINString,dateINDate)我遇到过基于CallableStatementCreator的方法,我们必须显式注册IN和OUT参数。考虑JdbcTemplate类中的以下方法:publicMapcall(CallableStatementCreatorcsc,ListdeclaredParameters)当然,我知道我可以这样使用它:ListdeclaredParamet