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