spring cloud 调用feign 如何让spring security 拦截器拦截除了通过FeignClientInterceptor接口拦截器中添加Spring Security的认证信息外...

示例

可以参考以下代码示例:

public class FeignClientInterceptor implements RequestInterceptor { @Override public void apply(RequestTemplate template) { Authentication authentication = SecurityContextHolder.getContext().getAuthentication(); if (authentication != null && authentication.ge

你可能感兴趣的:(spring,spring,cloud,java,spring,boot,mybatis)