@Configuration
@MapperScan(basePackages="**.mybatis.plus.mapper.reader.**",
annotationClass=MybatisPlusMapper.class,
sqlSessionFactoryRef="PLUS_READ_SQL_SESSION_FACTORY")
public class ReaderConfig
extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
READ_SQL_SESSION_FACTORY |
| Constructor and Description |
|---|
ReaderConfig() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.ibatis.session.SqlSessionFactory |
readSqlSessionFactory(DataSource dataSource) |
public static final String READ_SQL_SESSION_FACTORY
@Bean(name="PLUS_READ_SQL_SESSION_FACTORY")
public org.apache.ibatis.session.SqlSessionFactory readSqlSessionFactory(@Qualifier(value="readerDataSource")
DataSource dataSource)
throws Exception
ExceptionCopyright © 2022. All rights reserved.