rpc远程调用无token问题
This commit is contained in:
parent
8e7aff39cc
commit
880e653979
@ -9,6 +9,8 @@ import org.springframework.cloud.openfeign.FeignClient;
|
|||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
import javax.annotation.security.PermitAll;
|
||||||
|
|
||||||
@FeignClient(name = ApiConstants.NAME) // TODO 芋艿:fallbackFactory =
|
@FeignClient(name = ApiConstants.NAME) // TODO 芋艿:fallbackFactory =
|
||||||
@Tag(name = "RPC 服务 - 文件")
|
@Tag(name = "RPC 服务 - 文件")
|
||||||
public interface ConfigApi {
|
public interface ConfigApi {
|
||||||
@ -18,6 +20,7 @@ public interface ConfigApi {
|
|||||||
@GetMapping(value = "/get-value-by-key")
|
@GetMapping(value = "/get-value-by-key")
|
||||||
@Operation(summary = "根据参数键名查询参数值", description = "不可见的配置,不允许返回给前端")
|
@Operation(summary = "根据参数键名查询参数值", description = "不可见的配置,不允许返回给前端")
|
||||||
@Parameter(name = "key", description = "参数键", required = true, example = "yunai.biz.username")
|
@Parameter(name = "key", description = "参数键", required = true, example = "yunai.biz.username")
|
||||||
|
@PermitAll
|
||||||
CommonResult<String> getConfigKey(@RequestParam("key") String key);
|
CommonResult<String> getConfigKey(@RequestParam("key") String key);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user