当前位置:网站首页>About using @controller in gateway
About using @controller in gateway
2022-07-06 12:17:00 【A pole】
gateway Should not be used in @Controller
People are stupid for me , Because I verify the signature on the gateway service , It's using jwt authentication , If you want to get a login directly on the gateway service , The signed key can only be configured on the gateway , No need to go to another place , It's been a long time , During the test, I found that it didn't work at all ...
explain
With gateway As a gateway , Use @Controller, All fields in the response to the request are null And it is not the set general return format .
for example : Request path :/user/user?username=sticki, The obtained parameter fields are all null.
stay gateway Controller classes should not appear , Avoid gateway Annotation on class of @Controller.
So I finally changed the gateway service to only do signature verification , Then the login authorization function is put into the user service .
边栏推荐
- GCC compilation options
- ES6语法总结--下篇(进阶篇 ES6~ES11)
- Missing value filling in data analysis (focus on multiple interpolation method, miseforest)
- Redis based distributed locks and ultra detailed improvement ideas
- Detailed explanation of 5g working principle (explanation & illustration)
- Esp8266 uses Arduino to connect Alibaba cloud Internet of things
- C language, log print file name, function name, line number, date and time
- JS function promotion and declaration promotion of VaR variable
- inline详细讲解【C语言】
- uCOS-III 的特点、任务状态、启动
猜你喜欢

Générateur d'identification distribué basé sur redis

VSCode基础配置

优先级反转与死锁

JS變量類型以及常用類型轉換

Detailed explanation of 5g working principle (explanation & illustration)

Gallery's image browsing and component learning

JS object and event learning notes

基於Redis的分布式ID生成器

Missing value filling in data analysis (focus on multiple interpolation method, miseforest)

RT-Thread API参考手册
随机推荐
Embedded startup process
ARM PC=PC+8 最便于理解的阐述
Redis 缓存更新策略,缓存穿透、雪崩、击穿问题
JS正则表达式基础知识学习
ES6语法总结--下篇(进阶篇 ES6~ES11)
arduino获取数组的长度
Minio文件下载问题——inputstream:closed
Esp8266 uses Arduino to connect Alibaba cloud Internet of things
Togglebutton realizes the effect of switching lights
Whistle+switchyomega configure web proxy
open-mmlab labelImg mmdetection
arduino JSON数据信息解析
Redis based distributed locks and ultra detailed improvement ideas
嵌入式启动流程
ES6 grammar summary -- Part I (basic)
1081 rational sum (20 points) points add up to total points
JS object and event learning notes
STM32 如何定位导致发生 hard fault 的代码段
记一次云服务器被密码爆破的经历——关小黑屋、改密码、改端口
E-commerce data analysis -- salary prediction (linear regression)