Spring boot 2个微服务和其中一个微服务之间的Forbbiden与openFeign的通信使用jwt令牌是安全的

Spring boot 2个微服务和其中一个微服务之间的Forbbiden与openFeign的通信使用jwt令牌是安全的,spring-boot,spring-security,microservices,openfeign,Spring Boot,Spring Security,Microservices,Openfeign,我设法给微服务用户增加了安全性。但我现在面临的问题是,我很难让微服务(用户微服务和票证微服务)使用open-feign相互通信,因为其中一个现在由spring-security和JWT保护。请问我怎样才能克服这个问题 这是我控制器的一部分 @GetMapping("/find-ticket/{id}") public ResponseEntity<Ticket> findTicketById(@PathVariable("id"

我设法给微服务用户增加了安全性。但我现在面临的问题是,我很难让微服务(用户微服务和票证微服务)使用open-feign相互通信,因为其中一个现在由spring-security和JWT保护。请问我怎样才能克服这个问题

这是我控制器的一部分

    @GetMapping("/find-ticket/{id}")
    public ResponseEntity<Ticket> findTicketById(@PathVariable("id") UUID ticketId)
    {
        Ticket ticket= ticketService.findTicketById(ticketId);
        ticket.setUser(userService.findUserById(ticket.getUserId()));
        ResponseEntity<Ticket> responseEntity = new ResponseEntity<>(ticket, HttpStatus.OK);
        return responseEntity;

    }

@FeignClient(name = "USER-SERVICE")
public interface UserService {
    @GetMapping("/find-user/{id}")
    public User findUserById(@PathVariable(name = "id") UUID USER_ID);
}