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