changed conditional

This commit is contained in:
Timo Bejan 2023-06-01 23:00:46 +03:00
parent 1f079eb542
commit 6f609d0f86
2 changed files with 2 additions and 3 deletions

View File

@ -8,7 +8,6 @@ public interface TenantProvider {
TenantResponse getTenant(String tenantId);
List<TenantResponse> getTenants();
}

View File

@ -2,7 +2,7 @@ package com.knecon.fforesight.tenantcommons;
import java.util.List;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
@ -14,7 +14,7 @@ import com.knecon.fforesight.tenantcommons.model.TenantResponse;
@FeignClient(name = "TenantsResource", url = "${tenant-user-management-service.url}")
@ResponseStatus(value = HttpStatus.OK)
@ConditionalOnProperty(prefix = "fforesight.springdoc", value = "remote", havingValue = "true")
@ConditionalOnMissingBean(TenantProvider.class)
public interface TenantsClient extends TenantProvider {
String TENANT_PATH = "/tenants";