public class SqlSessionFactoryBeanExt
extends org.mybatis.spring.SqlSessionFactoryBean
| 构造器和说明 |
|---|
SqlSessionFactoryBeanExt() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
protected org.apache.ibatis.session.SqlSessionFactory |
buildSqlSessionFactory() |
com.gitee.fastmybatis.core.FastmybatisConfig |
getConfig() |
org.springframework.core.io.Resource[] |
getFinalMapperLocations() |
org.springframework.core.io.Resource[] |
getMapperLocations() |
org.apache.ibatis.session.SqlSessionFactory |
getSqlSessionFactory() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setBasePackage(String basePackage) |
void |
setConfig(com.gitee.fastmybatis.core.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, setDefaultEnumTypeHandler, setDefaultScriptingLanguageDriver, setEnvironment, setFailFast, setObjectFactory, setObjectWrapperFactory, setPlugins, setScriptingLanguageDrivers, setSqlSessionFactoryBuilder, setTransactionFactory, setTypeAliases, setTypeAliasesPackage, setTypeAliasesSuperType, setTypeHandlers, setTypeHandlersPackage, setVfs@Autowired public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
public 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 Exception
buildSqlSessionFactory 在类中 org.mybatis.spring.SqlSessionFactoryBeanExceptionpublic 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(com.gitee.fastmybatis.core.FastmybatisConfig config)
public com.gitee.fastmybatis.core.FastmybatisConfig getConfig()
public org.springframework.core.io.Resource[] getMapperLocations()
public org.springframework.core.io.Resource[] getFinalMapperLocations()
public org.apache.ibatis.session.SqlSessionFactory getSqlSessionFactory()
Copyright © 2022. All Rights Reserved.