diff --git a/src/main/java/com/dl/officialsite/config/IPFSConfig.java b/src/main/java/com/dl/officialsite/config/IPFSConfig.java index 50ff937f..b92ac763 100644 --- a/src/main/java/com/dl/officialsite/config/IPFSConfig.java +++ b/src/main/java/com/dl/officialsite/config/IPFSConfig.java @@ -10,7 +10,7 @@ import org.springframework.context.annotation.Bean; import org.springframework.stereotype.Component; -@Component +//@Component @Data @ConfigurationProperties(prefix = "ipfs") public class IPFSConfig { diff --git a/src/main/java/com/dl/officialsite/ipfs/IPFSService.java b/src/main/java/com/dl/officialsite/ipfs/IPFSService.java index 3e44b013..2148665b 100644 --- a/src/main/java/com/dl/officialsite/ipfs/IPFSService.java +++ b/src/main/java/com/dl/officialsite/ipfs/IPFSService.java @@ -13,7 +13,7 @@ import java.io.IOException; -@Component +//@Component public class IPFSService { diff --git a/src/main/java/com/dl/officialsite/redpacket/RedPacketService.java b/src/main/java/com/dl/officialsite/redpacket/RedPacketService.java index 1ff2d7f7..e931c5f6 100644 --- a/src/main/java/com/dl/officialsite/redpacket/RedPacketService.java +++ b/src/main/java/com/dl/officialsite/redpacket/RedPacketService.java @@ -55,7 +55,7 @@ public class RedPacketService { public CloseableHttpClient httpClient = HttpClients.createDefault(); - @Scheduled(cron = "0 0/120 * * * ? ") + @Scheduled(cron = "0 0/2 * * * ? ") public void updateRedpacketStatus() throws IOException { log.info("schedule task begin --------------------- "); HttpPost request = new HttpPost("https://api.studio.thegraph.com/proxy/55957/dapp-learning-redpacket/version/latest");