提示信息调整

This commit is contained in:
kerwincui
2022-05-24 12:20:46 +08:00
parent 1970b9f007
commit 8a1db44119

View File

@@ -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());
} }
} }