Showing
3 changed files
with
1 additions
and
4 deletions
| @@ -3,7 +3,6 @@ package com.mass.config; | @@ -3,7 +3,6 @@ package com.mass.config; | ||
| 3 | import org.springframework.context.annotation.Bean; | 3 | import org.springframework.context.annotation.Bean; |
| 4 | import org.springframework.context.annotation.Configuration; | 4 | import org.springframework.context.annotation.Configuration; |
| 5 | import org.springframework.scheduling.TaskScheduler; | 5 | import org.springframework.scheduling.TaskScheduler; |
| 6 | -import org.springframework.scheduling.annotation.EnableScheduling; | ||
| 7 | import org.springframework.scheduling.annotation.SchedulingConfigurer; | 6 | import org.springframework.scheduling.annotation.SchedulingConfigurer; |
| 8 | import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler; | 7 | import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler; |
| 9 | import org.springframework.scheduling.config.ScheduledTaskRegistrar; | 8 | import org.springframework.scheduling.config.ScheduledTaskRegistrar; |
| @@ -11,10 +11,8 @@ import org.springframework.scheduling.annotation.Scheduled; | @@ -11,10 +11,8 @@ import org.springframework.scheduling.annotation.Scheduled; | ||
| 11 | import org.springframework.stereotype.Service; | 11 | import org.springframework.stereotype.Service; |
| 12 | 12 | ||
| 13 | import java.io.*; | 13 | import java.io.*; |
| 14 | -import java.text.SimpleDateFormat; | ||
| 15 | import java.time.LocalDateTime; | 14 | import java.time.LocalDateTime; |
| 16 | import java.time.format.DateTimeFormatter; | 15 | import java.time.format.DateTimeFormatter; |
| 17 | -import java.util.Date; | ||
| 18 | import java.util.HashMap; | 16 | import java.util.HashMap; |
| 19 | import java.util.Map; | 17 | import java.util.Map; |
| 20 | 18 |
| @@ -67,7 +67,7 @@ public class HttpClientUtils { | @@ -67,7 +67,7 @@ public class HttpClientUtils { | ||
| 67 | log.info("请求参数信息{}", json); | 67 | log.info("请求参数信息{}", json); |
| 68 | httpPost.setEntity(httpEntity); | 68 | httpPost.setEntity(httpEntity); |
| 69 | } | 69 | } |
| 70 | -// httpPost.setHeader("Content-type", "application/x-www-form-urlencoded"); | 70 | + //httpPost.setHeader("Content-type", "application/x-www-form-urlencoded"); |
| 71 | //发起请求 | 71 | //发起请求 |
| 72 | httpResponse = httpClient.execute(httpPost); | 72 | httpResponse = httpClient.execute(httpPost); |
| 73 | int statusCode = httpResponse.getStatusLine().getStatusCode(); | 73 | int statusCode = httpResponse.getStatusLine().getStatusCode(); |