欢迎来到建筑考试题库网 建筑考试题库官网
全部科目 > 大学试题 > 计算机科学 > 云计算

多项选择题

在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>

  • 单项选择题
    MyBatis拦截器需要实现的接口是()。

    A.AbstractInterceptor
    B.usecenerate dKeys
    C.Plugin
    D.AbstractPlugin

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题