|
@@ -24,9 +24,9 @@ public class MqttMsgSchedule {
|
|
@Autowired
|
|
@Autowired
|
|
private MqttMsgRedisService mqttMsgRedisService;
|
|
private MqttMsgRedisService mqttMsgRedisService;
|
|
/**
|
|
/**
|
|
- * 5 秒钟调用一次
|
|
|
|
|
|
+ * 10 秒钟调用一次
|
|
*/
|
|
*/
|
|
- @Scheduled(cron = "0/5 * * * * ?")
|
|
|
|
|
|
+ @Scheduled(cron = "0/10 * * * * ?")
|
|
public void rotationRedis() {
|
|
public void rotationRedis() {
|
|
try {
|
|
try {
|
|
mqttMsgRedisService.rotationRedis();
|
|
mqttMsgRedisService.rotationRedis();
|