在xml映射文件中"parameterType= "是什么意思
时间: 2024-04-24 14:26:29 浏览: 79
在xml映射文件中,"parameterType"是用来指定SQL语句中的参数类型的属性。它指定了传递给SQL语句的参数的类型,以便在执行SQL语句时正确地映射参数值。在给定的引用中,"parameterType"属性被用来指定了一个HashMap类型的参数,其中包含了"userName"和"password"两个键值对。这样,在执行SQL语句时,可以通过这个HashMap来传递参数值。\[1\]\[2\]\[3\]
#### 引用[.reference_title]
- *1* [Mapper.xml中简化parameterType参数映射](https://blog.csdn.net/dxcll/article/details/125659337)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [mapper映射文件中parameterType是多个如何传参](https://blog.csdn.net/BH9968/article/details/80759088)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文