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

相關文章
相關標籤/搜索
每日一句
    每一个你不满意的现在,都有一个你没有努力的曾经。
本站公眾號
   歡迎關注本站公眾號,獲取更多信息