Commit 09c45d20 authored by Nikhil Singh[MicroSoft]'s avatar Nikhil Singh[MicroSoft]
Browse files

Make HttpClientAzure conditionally primary

parent ce7b63f7
Pipeline #73300 failed with stage
in 34 seconds
......@@ -27,6 +27,7 @@ import org.opengroup.osdu.core.common.http.HttpResponse;
import org.opengroup.osdu.core.common.http.UrlFetchServiceImpl;
import org.opengroup.osdu.core.common.model.http.AppException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;
......@@ -41,6 +42,7 @@ import static java.util.Arrays.asList;
*/
@Primary
@Component
@ConditionalOnProperty(value = "requestScope.enabled", havingValue = "true", matchIfMissing = true)
public class HttpClientAzure implements IHttpClient {
private static final String LOGGER_NAME = HttpClientAzure.class.getName();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment