单项选择题
在Spring和MyBatis整合时,通过SqlSessionFactoryBean的()属性指定映射文件的位置。
A.configLocation
B.mapperLocations
C.dataSource
D.typeAliasesPackage
点击查看答案
相关考题
-
单项选择题
SqlSessionFactoryBean的()属性用于指定数据源。
A.configLocation
B.mapperLocations
C.dataSource
D.typeAliasesPackage -
单项选择题
在MyBatis-Spring子项目中,通过()生成SqlSessionFactory。
A.SqlSessionFactoryBean
B.StringBuilder
C.SqlSession
D.FactoryBean -
单项选择题
通过在Spring配置文件中配置SqlSessionFactoryBean,最终返回的是()类型的Bean。
A.SqlSessionFactoryBean
B.SqlSessionFactory
C.SqlSession
D.FactoryBean
