12345678910111213141516171819202122 |
- package com.fdkankan.manage.httpClient.address;
- import com.dtflys.forest.callback.AddressSource;
- import com.dtflys.forest.http.ForestAddress;
- import com.dtflys.forest.http.ForestRequest;
- import org.springframework.beans.factory.annotation.Value;
- import org.springframework.stereotype.Component;
- @Component
- public class FdkkAddressSource implements AddressSource {
- @Value("${4dkk.fdService.basePath}")
- private String basePath;
- @Value("${4dkk.fdService.port}")
- private String port;
- @Override
- public ForestAddress getAddress(ForestRequest forestRequest) {
- return new ForestAddress("","",Integer.valueOf(port),basePath);
- }
- }
|