sql mybatis app ide this spa table 栏目 MyBatis 繁體版
原文   原文链接

经过我的试验,发现这个参数彷佛没什么用,mapper中的参数列表为@Param("insurerIdList") List<String> insurerIdList, @Param("startMonth") String startDatesql

这个能够说是两种类型的,可是对于mybatis都同样,并且,parameterType写与不写,均可以,甚至我写成parameterType='int'也是能够执行的。mybatis

parameterType The fully qualified class name or alias for the parameter that will be passed into this statement. This attribute is optional because MyBatis can calculate the TypeHandler to use out of the actual parameter passed to the statement. Default is unset.

官网上这样解释的,这个只是个别名,可是也能够不写,它本身能够对应上的,并传给sql的statement中使用。app

相关文章
相关标签/搜索
每日一句
    每一个你不满意的现在,都有一个你没有努力的曾经。
本站公众号
   欢迎关注本站公众号,获取更多信息