changed conditional
This commit is contained in:
parent
1f079eb542
commit
6f609d0f86
@ -8,7 +8,6 @@ public interface TenantProvider {
|
||||
|
||||
TenantResponse getTenant(String tenantId);
|
||||
|
||||
|
||||
List<TenantResponse> getTenants();
|
||||
|
||||
}
|
||||
|
||||
@ -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";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user