英文:
How to pass multiple params in org.springframework.util.MultiValueMap as header via POSTMAN or Swagger UI
问题
我已经开发了一个微服务,它使用MultiValueMap作为头部参数进行消耗,我们在同一个键“authorization”下传递授权字符串和几个其他的校验和。
当我通过RestTemplate或代码中的任何rest-client调用此控制器时,一切都运行得非常完美。但是,我正在寻找一种方法,可以从POSTMAN甚至是从Swagger UI传递这个MultiValueMap。
英文:
I have developed a micro-service consuming MultiValueMap as header parameters, where we are passing authorization string and few other checksums under the same key as "authorization".
Everything works perfectly when I am calling this controller via RestTemplate or any rest-client in code, but looking for a solution to pass this MultiValueMap from POSTMAN or even from Swagger UI
专注分享java语言的经验与见解,让所有开发者获益!
评论