DevcloudSchedule.java 700 B

1234567891011121314151617181920212223242526
  1. package cn.seecoder.data.server.schedule;
  2. import org.springframework.beans.factory.annotation.Value;
  3. import org.springframework.scheduling.annotation.Scheduled;
  4. import org.springframework.stereotype.Component;
  5. @Component
  6. public class DevcloudSchedule {
  7. @Scheduled
  8. public void devcloudDataExtration() {
  9. String url = this.addrPrefix + "/query/commits";
  10. }
  11. public String getAddrPrefix() {
  12. return addrPrefix;
  13. }
  14. public void setAddrPrefix(String addrPrefix) {
  15. this.addrPrefix = addrPrefix;
  16. }
  17. @Value("${urls.url1}")
  18. private String addrPrefix; //需要在服务器中对 'devcloud/' 开头的url进行反向代理
  19. }