forked from github/dataease
fix: bean 名称冲突
This commit is contained in:
parent
c23b20dbe9
commit
74613decc7
@ -38,9 +38,9 @@ public class ProviderFactory implements ApplicationContextAware {
|
||||
DatasourceTypes datasourceType = DatasourceTypes.valueOf(type);
|
||||
switch (datasourceType) {
|
||||
case es:
|
||||
return context.getBean("es", Provider.class);
|
||||
return context.getBean("esProviders", Provider.class);
|
||||
case api:
|
||||
return context.getBean("api", Provider.class);
|
||||
return context.getBean("apiProvider", Provider.class);
|
||||
default:
|
||||
return context.getBean("jdbc", Provider.class);
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ import org.springframework.stereotype.Service;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Service("api")
|
||||
@Service("apiProvider")
|
||||
public class ApiProvider extends Provider{
|
||||
|
||||
|
||||
|
@ -25,7 +25,7 @@ import java.nio.charset.StandardCharsets;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Service("es")
|
||||
@Service("esProviders")
|
||||
public class EsProvider extends Provider {
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user