mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-17 16:36:03 +08:00
提示信息调整
This commit is contained in:
@@ -33,9 +33,9 @@ public class ApplicationStarted implements ApplicationRunner {
|
|||||||
TDengineConfig tDengineConfig = applicationContext.getBean(TDengineConfig.class);
|
TDengineConfig tDengineConfig = applicationContext.getBean(TDengineConfig.class);
|
||||||
TDDeviceLogDAO tDDeviceLogDAO = applicationContext.getBean(TDDeviceLogDAO.class);
|
TDDeviceLogDAO tDDeviceLogDAO = applicationContext.getBean(TDDeviceLogDAO.class);
|
||||||
initTDengine(tDengineConfig, tDDeviceLogDAO);
|
initTDengine(tDengineConfig, tDDeviceLogDAO);
|
||||||
System.out.println("初始化TDengine成功");
|
LOGGER.info("使用TDengine存储设备数据,初始化成功");
|
||||||
}else{
|
}else{
|
||||||
System.out.println("MySQL初始化成功");
|
LOGGER.info("使用MySql存储设备数据,初始化成功");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -52,10 +52,9 @@ public class ApplicationStarted implements ApplicationRunner {
|
|||||||
String dbName = dengineConfig.getDbName();
|
String dbName = dengineConfig.getDbName();
|
||||||
int db = deviceLogMapper.createDB(dbName);
|
int db = deviceLogMapper.createDB(dbName);
|
||||||
deviceLogMapper.createSTable(dbName);
|
deviceLogMapper.createSTable(dbName);
|
||||||
System.out.println(db);
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
System.out.println("ERROR");
|
LOGGER.info("错误",e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user