Using spring boot swagger2 to add token, to header cannot be received by the backend

1. When using swagger2 to add token, the token passed in the swagger2 page cannot be received in the background.
2 and swagger2 are configured as follows:

clipboard.png

3swagger:

clipboard.png

4:

clipboard.png
5header:

clipboard.png

if there is a problem with the swagger2 configuration, please correct it!

Mar.18,2021

Brother solved it? I also encountered the same problem


Brother, I also encountered this problem, how did you solve it?


add a @ RequestHeader annotation

Menu