其他分享
首页 > 其他分享> > mybatis

mybatis

作者:互联网

 

1. MyBatis的传入参数parameterType类型分两种      11. 基本数据类型:int,string,long,Date;      12. 复杂数据类型:类和Map 2. 如何获取参数中的值:      2.1  基本数据类型:#{value}或${value} 获取参数中的值      2.2  复杂数据类型:#{属性名}或${属性名}  ,map中则是#{key}或${key}     resultType:   1、基本类型  :resultType=基本类型   2、List类型:   resultType=List中元素的类型   3、Map类型    单条记录:resultType =map                             多条记录:resultType =Map中value的类型

标签:Map,map,数据类型,value,resultType,类型,mybatis
来源: https://www.cnblogs.com/blogbook/p/15430845.html