单项选择题
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 -
多项选择题
以下属于MyBatis设计模式的是()。
A.Builder模式
B.autoMappingBehavior
C.单例模式
D.代理模式
