package com.fdkankan.contro.httpclient; import com.dtflys.forest.callback.AddressSource; import com.dtflys.forest.http.ForestAddress; import com.dtflys.forest.http.ForestRequest; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; @Slf4j @Component public class LaserAddressSource implements AddressSource { @Value("${4dkk.laserService.basePath}") private String basePath; @Override public ForestAddress getAddress(ForestRequest forestRequest) { log.info("------------basePath:{}--------------", basePath); return new ForestAddress("","",null,basePath); } }