feat:连接池初始化

ruoyi_test
sunshine7058 2024-05-13 17:02:53 +08:00
parent bf61f58ae7
commit f47588e658
1 changed files with 25 additions and 0 deletions

View File

@ -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);
}