to achieve permission verification, before using springcloud, the filter requested by http is verified according to the permission of token. After token
is added to the springcloud at the front end, the micro service is called with feign, but it is actually a http request. I don"t want to write the token parameter in every feign method, which is too troublesome. But without token, you can"t pass the original permission verification. There are several possible solutions:
1. The filter on the server distinguishes whether the client is feign or the front-end browser, but it is not authenticated if it is feign.
2.feign can set the parameters passed by global default, and you can add some parameters to let the server identify feign, without adding such code to every feign interface code