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