当前位置:网站首页>Resttemplate multiple authentication information authorization
Resttemplate multiple authentication information authorization
2022-06-21 20:04:00 【GodSure0914】
Business scenario , I spliced a request header through the program , Then put the request header in HttpHeaders adopt RestTemplate Call exit gateway , Pass the interface test swagger There is absolutely no problem with calling , But once it is sent to the server and called by the program, an error will be reported 
You can see from the log , What's reported here is json Conversion error , But by log The log discovery involves my own splicing Authorization No problem , Finally, print the log at the exit gateway and find restTemplate Two... Were passed on the request Authorization In the past , The gateway only takes the first one for analysis , The reason for the problem is that the browser itself has an authentication information ,java The code uses when assigning this authentication information HttpHeaders Of add Method , and add The method is based on the original information , So when the gateway resolves, it only resolves the browser segment , It eventually leads to an error report , take add Change to set Then the problem is solved , The worst is through swagger Local calls can't find this problem at all !!!


边栏推荐
- 将图片背景设置为透明的方法介绍
- 金鱼哥RHCA回忆录:DO447Ansible Tower导航
- inno setup 更改安装路径学习
- Nacos configuration center source code
- After the 80 version of Google browser, how to deal with the problem samesite cross domain problem
- 我记得MAXCOMPUTE里面是不可以写PROCEDURE,那如果想oracle procedure
- inno setup 安装路径框学习
- SQL operation: with expression and its application
- Shang Silicon Valley Shang Silicon Valley | what is Clickhouse table engine memory and merge
- W10 add system environment variable path
猜你喜欢

Leetcode personal question solution (Sword finger offer 21-25) 21 Adjust the array order so that odd numbers precede even numbers, 22 The penultimate node in the linked list, 24 Reverse linked list, 2

TensorFlow 2:使用神经网络对Fashion MNIST分类并进行比较分析

【CVPR2022】CMU《多模态机器学习》教程,200+页阐述表示、对齐、推理、迁移、生成与量化六大挑战的多模态学习系统知识

自定义代码模板

Source code analysis of ArrayList

删除倒数第k个节点-链表专题

How to set the picture background to transparent

基于k近邻的MNIST图像分类对比
![婴儿名字[连通分量之邻接矩阵与DFS]](/img/60/83da6ce2fd2336fe1c4aead3260b77.png)
婴儿名字[连通分量之邻接矩阵与DFS]

Datagear uses coordinate mapping table to make geographic coordinate data visualization Kanban
随机推荐
With a playback volume of up to 4000w+, how do couples get out of the ring by scattering dog food?
Clustering, dimension reduction and measurement techniques for machine learning
uniapp小程序打开地图选择位置demo效果wx.chooseLocation(整理)
[cvpr2022] CMU tutorial on multimodal machine learning, 200+ pages to explain the knowledge of multimodal learning system with six challenges of representation, alignment, reasoning, migration, genera
Flink 系例 之 TableAPI & SQL 与 示例模块
《安富莱嵌入式周报》第270期:2022.06.13--2022.06.19
When the move protocol beta is in progress, the ecological core equity Momo is divided
Gradle下载与安装配置
动态规划【二】(线性dp)
金鱼哥RHCA回忆录:DO447管理用户和团队的访问
HMS core machine learning service ID card identification function to achieve efficient information entry
How to set the picture background to transparent
Leetcode personal question solution (Sword finger offer 21-25) 21 Adjust the array order so that odd numbers precede even numbers, 22 The penultimate node in the linked list, 24 Reverse linked list, 2
How to create network redundancy for network managed national production reinforced switch
理财产品到期当日能赎回吗?
How to use devaxpress WPF to create the first MVVM application in winui?
TensorFlow 2:使用神经网络对Fashion MNIST分类并进行比较分析
RestTemplate多个认证信息Authorization问题
Custom code template
R language uses neuralnet package to build neural network regression model (feedforward neural network regression model), visualize the scatter diagram between the actual target value and the predicte