public class SqlSessionFactoryBeanExt
extends org.mybatis.spring.SqlSessionFactoryBean
| 构造器和说明 |
|---|
SqlSessionFactoryBeanExt() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
protected org.apache.ibatis.session.SqlSessionFactory |
buildSqlSessionFactory() |
FastmybatisConfig |
getConfig() |
org.springframework.core.io.Resource[] |
getFinalMapperLocations() |
org.springframework.core.io.Resource[] |
getMapperLocations() |
org.apache.ibatis.session.SqlSessionFactory |
getSqlSessionFactory() |
void |
setBasePackage(String basePackage) |
void |
setConfig(FastmybatisConfig config) |
void |
setDataSource(DataSource dataSource) |
void |
setMapperLocations(org.springframework.core.io.Resource[] mapperLocations) |
getCache, getDatabaseIdProvider, getObject, getObjectType, getVfs, isSingleton, onApplicationEvent, setCache, setConfigLocation, setConfiguration, setConfigurationProperties, setDatabaseIdProvider, setEnvironment, setFailFast, setObjectFactory, setObjectWrapperFactory, setPlugins, setSqlSessionFactoryBuilder, setTransactionFactory, setTypeAliases, setTypeAliasesPackage, setTypeAliasesSuperType, setTypeHandlers, setTypeHandlersPackage, setVfspublic void setDataSource(DataSource dataSource)
setDataSource 在类中 org.mybatis.spring.SqlSessionFactoryBeanpublic void setMapperLocations(org.springframework.core.io.Resource[] mapperLocations)
setMapperLocations 在类中 org.mybatis.spring.SqlSessionFactoryBeanprotected org.apache.ibatis.session.SqlSessionFactory buildSqlSessionFactory()
throws IOException
buildSqlSessionFactory 在类中 org.mybatis.spring.SqlSessionFactoryBeanIOExceptionpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanafterPropertiesSet 在类中 org.mybatis.spring.SqlSessionFactoryBeanExceptionpublic void setBasePackage(String basePackage)
basePackage - 指定哪些包需要被扫描,支持多个包"package.a,package.b"并对每个包都会递归搜索public void setConfig(FastmybatisConfig config)
public FastmybatisConfig getConfig()
public org.springframework.core.io.Resource[] getMapperLocations()
public org.springframework.core.io.Resource[] getFinalMapperLocations()
public org.apache.ibatis.session.SqlSessionFactory getSqlSessionFactory()
Copyright © 2021. All Rights Reserved.