lyhzzz hace 2 años
padre
commit
fdd19345b5

+ 5 - 0
src/main/java/com/fdkankan/tools/task/TaskService.java

@@ -20,12 +20,17 @@ import java.util.Objects;
 @Slf4j
 public class TaskService {
 
+
+    //@Scheduled(cron = "0 0 1 * * ?}")
+    //@Scheduled(cron = "0 */1 * * * ?}")
+
     @Autowired
     ZfbOldToNewService zfbOldToNewService;
     @Value("${spring.profiles.active}")
     private String active;
 
     @Scheduled(cron = "0 0 0 * * ?}")
+    //@Scheduled(cron = "0 */1 * * * ?}")
     public void genOldCode() {
         Integer count = 10000;
         log.info("task-genOldCode:{}","触发定时任务生成old-prod指房宝场景码");

+ 2 - 2
src/main/resources/application-old-prod.yaml

@@ -12,8 +12,8 @@ spring:
       # true:找不到数据源报错,false:找不到数据源则使用数据源
     druid:
       driver-class-name: com.mysql.jdbc.Driver
-        #url: jdbc:mysql://120.24.144.164:3306/4dkankan_v4?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
-      url: jdbc:mysql://47.112.166.173:3306/zhi_house?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
+        #url: jdbc:mysql://47.112.166.173:3306/4dkankan_v4?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
+      url: jdbc:mysql://127.0.0.1:3306/zhi_house?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
       username: root
       password: 4dkankan4dage