mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
opt:update loveqq-framework starter version
This commit is contained in:
parent
366d556bad
commit
2fb2582d9b
@ -6,7 +6,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.mybatis-flex</groupId>
|
<groupId>com.mybatis-flex</groupId>
|
||||||
<artifactId>parent</artifactId>
|
<artifactId>parent</artifactId>
|
||||||
<version>1.10.8</version>
|
<version>1.10.9</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>mybatis-flex-loveqq-starter</artifactId>
|
<artifactId>mybatis-flex-loveqq-starter</artifactId>
|
||||||
|
|||||||
@ -80,7 +80,7 @@ public class FlexSqlSessionFactoryBean extends SqlSessionFactoryBean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void buildMapperLocations() {
|
protected void buildMapperLocations(Configuration configuration) {
|
||||||
// mybatis-flex 要延迟加载
|
// mybatis-flex 要延迟加载
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ public class FlexSqlSessionFactoryBean extends SqlSessionFactoryBean {
|
|||||||
@Override
|
@Override
|
||||||
protected SqlSessionFactory build(Configuration configuration) {
|
protected SqlSessionFactory build(Configuration configuration) {
|
||||||
SqlSessionFactory sqlSessionFactory = new FlexSqlSessionFactoryBuilder().build(configuration);
|
SqlSessionFactory sqlSessionFactory = new FlexSqlSessionFactoryBuilder().build(configuration);
|
||||||
super.buildMapperLocations();
|
super.buildMapperLocations(configuration);
|
||||||
return sqlSessionFactory;
|
return sqlSessionFactory;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -189,6 +189,7 @@ public class MybatisFlexAutoConfiguration implements InitializingBean {
|
|||||||
* @param dataSource 数据源
|
* @param dataSource 数据源
|
||||||
* @return 事务管理器
|
* @return 事务管理器
|
||||||
*/
|
*/
|
||||||
|
@ConditionalOnMybatisFlexDatasource
|
||||||
@Bean(resolveNested = false, independent = true)
|
@Bean(resolveNested = false, independent = true)
|
||||||
public PlatformTransactionManager flexDataSourceTransactionManager(DataSource dataSource) {
|
public PlatformTransactionManager flexDataSourceTransactionManager(DataSource dataSource) {
|
||||||
return new FlexTransactionManager();
|
return new FlexTransactionManager();
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>mybatis-flex-test</artifactId>
|
<artifactId>mybatis-flex-test</artifactId>
|
||||||
<groupId>com.mybatis-flex</groupId>
|
<groupId>com.mybatis-flex</groupId>
|
||||||
<version>1.10.8</version>
|
<version>1.10.9</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>mybatis-flex-loveqq-test</artifactId>
|
<artifactId>mybatis-flex-loveqq-test</artifactId>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user