You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
admin-client-temperature/src/main/java/com/rehome/mqttclienttemperature/service/ScheduledService.java

38 lines
945 B
Java

2 years ago
package com.rehome.mqttclienttemperature.service;
1 year ago
import com.google.gson.Gson;
import com.rehome.mqttclienttemperature.controller.JdbcDemoController;
import com.rehome.mqttclienttemperature.dto.ResponseDto;
import jakarta.annotation.Resource;
1 year ago
import org.springframework.scheduling.annotation.Scheduled;
2 years ago
import org.springframework.stereotype.Component;
1 year ago
2 years ago
/**
* @author huangwenfei
* @version v1.0.0.0
* Created DateTime 2021-04-26 14:35
* @description:
*/
@Component
public class ScheduledService {
1 year ago
@Resource
private JdbcDemoController jdbcDemoController;
/**
* @date 2022-03-16 09:41
12 months ago
*
1 year ago
* @description:
* @Param: null
*/
// @Scheduled(cron = "30 31 0 18 12 *")
1 year ago
public void getNmcWeatherProvince() {
ResponseDto responseDto = jdbcDemoController.queryList();
12 months ago
//System.out.println(new Gson().toJson(responseDto));
1 year ago
}
2 years ago
}