LaserAddressSource.java 689 B

1234567891011121314151617181920212223
  1. package com.fdkankan.contro.httpclient;
  2. import com.dtflys.forest.callback.AddressSource;
  3. import com.dtflys.forest.http.ForestAddress;
  4. import com.dtflys.forest.http.ForestRequest;
  5. import lombok.extern.slf4j.Slf4j;
  6. import org.springframework.beans.factory.annotation.Value;
  7. import org.springframework.stereotype.Component;
  8. @Slf4j
  9. @Component
  10. public class LaserAddressSource implements AddressSource {
  11. @Value("${4dkk.laserService.basePath}")
  12. private String basePath;
  13. @Override
  14. public ForestAddress getAddress(ForestRequest forestRequest) {
  15. log.info("------------basePath:{}--------------", basePath);
  16. return new ForestAddress("","",null,basePath);
  17. }
  18. }