Commit f9987e75 authored by renjie's avatar renjie

生成3proxy配置文件

parent e69b3d60
...@@ -38,7 +38,7 @@ public class Set3proxyTask { ...@@ -38,7 +38,7 @@ public class Set3proxyTask {
@Autowired @Autowired
private SpecialLineRepository specialLineRepository; private SpecialLineRepository specialLineRepository;
@Scheduled(cron = "0 0/1 * * * ?") @Scheduled(cron = "0 0/10 * * * ?")
public void set3proxy() { public void set3proxy() {
long validTime = Instant.now().minusSeconds(43200).toEpochMilli(); long validTime = Instant.now().minusSeconds(43200).toEpochMilli();
// List<String> tokenUsernames = mongoOAuth2AccessTokenRepository.findByCreatedAtGreaterThan(validTime).stream().map(MongoOAuth2AccessToken::getUsername).collect(Collectors.toList()); // List<String> tokenUsernames = mongoOAuth2AccessTokenRepository.findByCreatedAtGreaterThan(validTime).stream().map(MongoOAuth2AccessToken::getUsername).collect(Collectors.toList());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment