package cn.seecoder.data.server.schedule; import org.springframework.beans.factory.annotation.Value; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; @Component public class DevcloudSchedule { @Scheduled public void devcloudDataExtration() { String url = this.addrPrefix + "/query/commits"; } public String getAddrPrefix() { return addrPrefix; } public void setAddrPrefix(String addrPrefix) { this.addrPrefix = addrPrefix; } @Value("${urls.url1}") private String addrPrefix; //需要在服务器中对 'devcloud/' 开头的url进行反向代理 }