12345678910111213141516171819 |
- package com.fdkankan.tk.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 SocketAddressSource implements AddressSource {
- @Value("${4dkk.socketService.basePath}")
- private String basePath;
- @Override
- public ForestAddress getAddress(ForestRequest forestRequest) {
- return new ForestAddress("","",null,basePath);
- }
- }
|