feat:连接池初始化
parent
bf61f58ae7
commit
f47588e658
|
@ -0,0 +1,25 @@
|
||||||
|
package com.muyu.data.source.remote;
|
||||||
|
|
||||||
|
import com.muyu.common.core.constant.ServiceNameConstants;
|
||||||
|
import com.muyu.common.core.domain.Result;
|
||||||
|
import com.muyu.data.source.domain.DatabaseType;
|
||||||
|
import com.muyu.data.source.remote.factory.RemoteDataTypeFactory;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据源类型远程调用
|
||||||
|
*
|
||||||
|
* @author CHX
|
||||||
|
* on 2024/5/10 星期五
|
||||||
|
*/
|
||||||
|
@FeignClient(contextId = "RemoteDataTypeService",
|
||||||
|
value = ServiceNameConstants.SOURCE_SERVICE,
|
||||||
|
fallbackFactory = RemoteDataTypeFactory.class,
|
||||||
|
path = "/data/source/type"
|
||||||
|
)
|
||||||
|
public interface RemoteDataTypeService {
|
||||||
|
@GetMapping("/getDatabaseType/{databaseName}")
|
||||||
|
public Result<DatabaseType> getDataType(@PathVariable("databaseName") String databaseName);
|
||||||
|
}
|
Loading…
Reference in New Issue