remove disruptor dao

master
修改密码漏洞修复完成 1 year ago
parent eff9af08ba
commit 4582be2ee7

@ -192,12 +192,12 @@ public class ScheduledService {
nowWeather.setCreateDate(now); nowWeather.setCreateDate(now);
//用 Disruptor 消息队列 实现特快高并发处理,支撑每秒 600 万订单无压力! //用 Disruptor 消息队列 实现特快高并发处理,支撑每秒 600 万订单无压力!
DisruptorMqService disruptorMqService = SpringUtil.getBean(DisruptorMqService.class); // DisruptorMqService disruptorMqService = SpringUtil.getBean(DisruptorMqService.class);
disruptorMqService.pushMessageToMq(nowWeather); // disruptorMqService.pushMessageToMq(nowWeather);
//直接jpa存储数据到表 //直接jpa存储数据到表
// NmcWeatherService nmcWeatherServiceTemp = SpringUtil.getBean(NmcWeatherService.class); NmcWeatherService nmcWeatherServiceTemp = SpringUtil.getBean(NmcWeatherService.class);
// nmcWeatherServiceTemp.saveNowWeather(nowWeather); nmcWeatherServiceTemp.saveNowWeather(nowWeather);
log.info("消息队列已发送完毕"); log.info("消息队列已发送完毕");
} }
} catch (Exception e) { } catch (Exception e) {

@ -9,7 +9,8 @@ spring:
# url: jdbc:mysql://127.0.0.1:3306/head_office_data_center?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true&allowMultiQueries=true # url: jdbc:mysql://127.0.0.1:3306/head_office_data_center?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true&allowMultiQueries=true
# url: jdbc:mysql://localhost:3306/head_office_data_center?useUnicode=true&characterEncoding=utf-8&useSSL=true&nullCatalogMeansCurrent=true&serverTimezone=UTC # url: jdbc:mysql://localhost:3306/head_office_data_center?useUnicode=true&characterEncoding=utf-8&useSSL=true&nullCatalogMeansCurrent=true&serverTimezone=UTC
# url: jdbc:mysql://192.168.2.18:3306/disruptor_nmc?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true # url: jdbc:mysql://192.168.2.18:3306/disruptor_nmc?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
url: jdbc:mysql://192.168.3.7:3306/disruptor_nmc?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true #url: jdbc:mysql://192.168.3.7:3306/disruptor_nmc?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
url: jdbc:mysql://127.0.0.1:3306/disruptor_nmc?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
username: root username: root
password: Skyinno251, password: Skyinno251,
# driverClassName: oracle.jdbc.driver.OracleDriver # driverClassName: oracle.jdbc.driver.OracleDriver

Loading…
Cancel
Save