RemoteConfigService.java
654 Bytes
package com.huaheng.system.api;
import com.huaheng.common.core.constant.ServiceNameConstants;
import com.huaheng.system.api.factory.RemoteConfigFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@FeignClient(contextId = "remoteConfigService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteConfigFallbackFactory.class)
public interface RemoteConfigService {
@GetMapping(value = "/config/configKey/{configKey}")
String getConfigKey(@PathVariable("configKey") String configKey);
}