pom change

master
修改密码漏洞修复完成 6 months ago
parent 06f7fa23f1
commit e1e407d025

@ -109,7 +109,8 @@
<dependency> <dependency>
<groupId>org.postgresql</groupId> <groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId> <artifactId>postgresql</artifactId>
<scope>runtime</scope> <version>42.5.0</version> <!-- 使用最新版本 -->
<!-- <scope>runtime</scope>-->
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>

@ -53,7 +53,7 @@ public class ScheduledHefengWeatherService {
* //天气图标用法: https://icons.qweather.com/usage/ * //天气图标用法: https://icons.qweather.com/usage/
* @Param: null * @Param: null
*/ */
//@Scheduled(cron = "0 30 * * * *")//每个小时执行一次 //@Scheduled(cron = "0 0 2 * * *")//每个小时执行一次
public void scheduled() { public void scheduled() {
log.info("scheduled"); log.info("scheduled");
log.info("=====>>>>>使用cron:" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date())); log.info("=====>>>>>使用cron:" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));

@ -38,13 +38,13 @@ public class ScheduledWztfwStormService {
* @description: * @description:
* @Param: null * @Param: null
*/ */
@Scheduled(cron = "0 39 15 * * *") // @Scheduled(cron = "0 39 15 * * *")
public void getWztfHistoryStormList() { // public void getWztfHistoryStormList() {
for(int i=1945;i<2026;i++){ // for(int i=1945;i<2026;i++){
getWztfStormList(String.valueOf(i)); // getWztfStormList(String.valueOf(i));
} // }
//getWztfStormList(String.valueOf(1944)); // //getWztfStormList(String.valueOf(1944));
} // }
/** /**
* @date 2022-03-16 09:41 * @date 2022-03-16 09:41
@ -52,7 +52,7 @@ public class ScheduledWztfwStormService {
* @Param: null * @Param: null
*/ */
//@Scheduled(cron = "0 15 * * * *") //@Scheduled(cron = "0 15 * * * *")
public void getWztfStormList(String nowYear) { public void getWztfStormList() {
// 初始化 OkHttpClient // 初始化 OkHttpClient
OkHttpClient client = new OkHttpClient.Builder() OkHttpClient client = new OkHttpClient.Builder()
.connectTimeout(10, TimeUnit.SECONDS) .connectTimeout(10, TimeUnit.SECONDS)
@ -65,7 +65,7 @@ public class ScheduledWztfwStormService {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
SimpleDateFormat sdfYear = new SimpleDateFormat("yyyy"); SimpleDateFormat sdfYear = new SimpleDateFormat("yyyy");
String nowDate = sdf.format(new Date()); String nowDate = sdf.format(new Date());
//String nowYear = sdfYear.format(new Date()); String nowYear = sdfYear.format(new Date());
//nowYear = String.valueOf(i); //nowYear = String.valueOf(i);
String url = "http://data.istrongcloud.com/v2/data/complex/" + nowYear + ".json?v=" + String.valueOf(System.currentTimeMillis()); String url = "http://data.istrongcloud.com/v2/data/complex/" + nowYear + ".json?v=" + String.valueOf(System.currentTimeMillis());

@ -41,7 +41,7 @@ public class ScheduledZjsltStormService {
* @description: * @description:
* @Param: null * @Param: null
*/ */
// @Scheduled(cron = "0 24 * * * *") // @Scheduled(cron = "0 57 1 * * *")
// public void getZjsltHistoryStormList() { // public void getZjsltHistoryStormList() {
// for(int i=1944;i<2026;i++){ // for(int i=1944;i<2026;i++){
// getZjsltStormList(String.valueOf(i)); // getZjsltStormList(String.valueOf(i));
@ -52,7 +52,7 @@ public class ScheduledZjsltStormService {
* @description: * @description:
* @Param: null * @Param: null
*/ */
//@Scheduled(cron = "0 23 * * * *") @Scheduled(cron = "0 23 * * * *")
public void getZjsltStormList() { public void getZjsltStormList() {
log.info("getZjsltStormList"); log.info("getZjsltStormList");
String strNow = String.valueOf(System.currentTimeMillis()); String strNow = String.valueOf(System.currentTimeMillis());

@ -41,4 +41,4 @@ spring:
# 最大请求大小 # 最大请求大小
max-request-size: 20MB max-request-size: 20MB
rehome: rehome:
resources-path: /Users/admin/storage # 外部资源文件存储路径 格式:/Users/edao/storage resources-path: /Users/edao/storage # 外部资源文件存储路径 格式:/Users/edao/storage
Loading…
Cancel
Save