Prechádzať zdrojové kódy

开启cookie定时任务

xusonglin 1 rok pred
rodič
commit
4aa027e249

+ 6 - 6
pom.xml

@@ -10,7 +10,7 @@
     </parent>
     <groupId>com.jkcredit.info.query</groupId>
     <artifactId>info-query</artifactId>
-    <version>1.0.16</version>
+    <version>1.0.17</version>
     <name>info-query</name>
     <description>Demo project for Spring Boot</description>
     <properties>
@@ -53,11 +53,11 @@
             <artifactId>quartz</artifactId>
             <version>2.3.0</version>
         </dependency>
-<!--        <dependency>-->
-<!--            <groupId>org.apache.httpcomponents</groupId>-->
-<!--            <artifactId>httpclient</artifactId>-->
-<!--            <version>4.2.5</version>-->
-<!--        </dependency>-->
+        <!--        <dependency>-->
+        <!--            <groupId>org.apache.httpcomponents</groupId>-->
+        <!--            <artifactId>httpclient</artifactId>-->
+        <!--            <version>4.2.5</version>-->
+        <!--        </dependency>-->
         <dependency>
             <groupId>org.apache.commons</groupId>
             <artifactId>commons-lang3</artifactId>

+ 1 - 1
src/main/java/com/jkcredit/info/query/InfoQueryApplication.java

@@ -7,7 +7,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
 
 @EnableEurekaClient
 @SpringBootApplication
-//@EnableScheduling
+@EnableScheduling
 public class InfoQueryApplication {
 
     public static void main(String[] args) {

+ 1 - 1
src/main/java/com/jkcredit/info/query/task/LoadCookieTask.java

@@ -17,7 +17,7 @@ import java.util.Random;
  * @version V1.0
  **/
 @Slf4j
-//@Component
+@Component
 public class LoadCookieTask {
     @Scheduled(cron = "0 0/3 * * * ?", zone = "Asia/Shanghai")
     public void loadCookie() {