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