bean
property
<
以上配置,其中SqlSessionFactoryBean
接口
這個核心類在mybatis那個jar中呢,如下圖:
,這裡隻說明這個類的作用
的
this = buildSqlSessionFactory();
("Property 'dataSource' is required" sqlSessionFactoryBuilder);
state == configLocation) || !(null != );
這些都是對必須配置屬性的異常處理。
"sqlSessionFactory"= "dataSource"=/>
property=value*:zzy/*Mapper.xml>
property</, 下節對常用屬性做簡單介紹
configLocation
private;
private
Properties sqlSessionFactoryBuilder SqlSessionFactoryBuilder();
SqlSessionFactory environment.getSimpleName();
failFast
TypeHandler<?>[] typeHandlersPackage
String typeAliasesSuperType
//issue #19. No default provider.
Class<? vfs
ObjectFactory objectWrapperFactory
mapperLocationsdataSource