当前位置:网站首页>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 .
边栏推荐
- Basic knowledge of lithium battery
- 嵌入式启动流程
- @Autowired 和 @Resource 的区别
- Redis based distributed ID generator
- Types de variables JS et transformations de type communes
- Analysis of charging architecture of glory magic 3pro
- 选择法排序与冒泡法排序【C语言】
- ESP learning problem record
- ARM PC=PC+8 最便于理解的阐述
- Pytoch temperature prediction
猜你喜欢
JS Title: input array, exchange the largest with the first element, exchange the smallest with the last element, and output array.
Navigator object (determine browser type)
荣耀Magic 3Pro 充电架构分析
open-mmlab labelImg mmdetection
ES6 grammar summary -- Part 2 (advanced part es6~es11)
RT-Thread 线程的时间片轮询调度
Feature of sklearn_ extraction. text. CountVectorizer / TfidVectorizer
open-mmlab labelImg mmdetection
ES6语法总结--下篇(进阶篇 ES6~ES11)
MySQL占用内存过大解决方案
随机推荐
基于Redis的分布式锁 以及 超详细的改进思路
C language, log print file name, function name, line number, date and time
Detailed explanation of Union [C language]
Mysql database interview questions
记一次云服务器被密码爆破的经历——关小黑屋、改密码、改端口
Symbolic representation of functions in deep learning papers
GCC compilation options
js 变量作用域和函数的学习笔记
Working principle of genius telephone watch Z3
Knowledge summary of request
PT OSC deadlock analysis
AMBA、AHB、APB、AXI的理解
Reno7 60W超级闪充充电架构
MySQL时间、时区、自动填充0的问题
VSCode基础配置
RuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED
JS Title: input array, exchange the largest with the first element, exchange the smallest with the last element, and output array.
OPPO VOOC快充电路和协议
Fashion Gen: the general fashion dataset and challenge paper interpretation & dataset introduction
ESP learning problem record