mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
optimize DbAutoConfiguration.java
This commit is contained in:
parent
dabb6f739d
commit
df3b296f16
@ -32,9 +32,10 @@ public class DbAutoConfiguration {
|
|||||||
|
|
||||||
public DbAutoConfiguration() {
|
public DbAutoConfiguration() {
|
||||||
FlexGlobalConfig defaultConfig = FlexGlobalConfig.getDefaultConfig();
|
FlexGlobalConfig defaultConfig = FlexGlobalConfig.getDefaultConfig();
|
||||||
if (defaultConfig == null){
|
if (defaultConfig == null) {
|
||||||
Logger.getLogger(Db.class.getName()).log(Level.WARNING,"Cannot get FlexGlobalConfig instance, Perhaps the dataSource config error.");
|
Logger.getLogger(DbAutoConfiguration.class.getName()).log(Level.WARNING
|
||||||
}else {
|
, "Cannot get FlexGlobalConfig instance, Perhaps the dataSource config error.");
|
||||||
|
} else {
|
||||||
Db.invoker().setRowSessionManager(new SpringRowSessionManager());
|
Db.invoker().setRowSessionManager(new SpringRowSessionManager());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user