单项选择题
在mybatis中传入参数如果含多个,可以选用的方法就是JAVABean和注解,注解的方式使用以下()注解。
A.@set
B.@Map
C.@value
D.@Param
相关考题
-
多项选择题
在Mybatis中,关于和元素说法错误的是()。
A.< collection>通过property属性指定实体类中集合属性的名字
B.< collection>通过javaType属性指定集合中每个元素的类型
C.< collection>通过javaType属性指定集合的类型
D.< collection>通过type属性指定集合的类型 -
单项选择题
Mybatis全局配置文件中,对各个标签的描述错误的是()。
A.< properties>一般将数据源的信息单独放在一个properties文件中,然后用这个标签引入,在下面environment标签中,就可以用${}占位符快速获取数据源的信息
B.< settings>用来开启或关闭mybatis的一些特性,比如可以用< setting name="lazyLoadingEnabled"value="true"/>来开启延迟加载,可以用< settings name="cacheEnabled"value="true"/>来开启二级缓存
C.< typeAliases>指定包下的所有类,都会以简单类名的大写形式,作为它的别名
D.< plugins>可以用来配置mybatis的插件,比如在开发中经常需要对查询结果进行分页,就需要用到pageHelper分页插件,这些插件就是通过这个标签进行配置的 -
单项选择题
关于ResultType取值错误的是()。
A.<select id="selectPersonCount"resultType="Integer">select count(*)from person</select>
B.<select id="selectPersonCount"resultType="int">select count(*)fromperson</select>
C.<select id="selectPersonCount"resultType="_int">select count(*)fromperson</select>
D.<select id="selectPersonCount"resultType="java.lang.Integer">select count(*)fromperson</select>
