当前位置:网站首页>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 .
边栏推荐
- Detailed explanation of 5g working principle (explanation & illustration)
- arduino UNO R3的寄存器写法(1)-----引脚电平状态变化
- RT thread API reference manual
- 优先级反转与死锁
- Basic operations of databases and tables ----- classification of data
- Basic operations of databases and tables ----- view data tables
- (三)R语言的生物信息学入门——Function, data.frame, 简单DNA读取与分析
- There are three iPhone se 2022 models in the Eurasian Economic Commission database
- The first simple case of GNN: Cora classification
- Several declarations about pointers [C language]
猜你喜欢

小天才电话手表 Z3工作原理

MySQL时间、时区、自动填充0的问题

The dolphin scheduler remotely executes shell scripts through the expect command

高通&MTK&麒麟 手机平台USB3.0方案对比

Reno7 60W超级闪充充电架构

Gallery's image browsing and component learning

JS Title: input array, exchange the largest with the first element, exchange the smallest with the last element, and output array.

AMBA、AHB、APB、AXI的理解

A possible cause and solution of "stuck" main thread of RT thread

Understanding of AMBA, AHB, APB and Axi
随机推荐
Comparison of solutions of Qualcomm & MTK & Kirin mobile platform USB3.0
高通&MTK&麒麟 手机平台USB3.0方案对比
uCOS-III 的特点、任务状态、启动
关键字 inline (内联函数)用法解析【C语言】
Fashion-Gen: The Generative Fashion Dataset and Challenge 论文解读&数据集介绍
. elf . map . list . Hex file
Navigator object (determine browser type)
Pytorch: tensor operation (I) contiguous
锂电池基础知识
ES6 grammar summary -- Part 2 (advanced part es6~es11)
Mp3mini playback module Arduino < dfrobotdfplayermini H> function explanation
优先级反转与死锁
Basic operations of databases and tables ----- creating data tables
ESP8266使用arduino连接阿里云物联网
ESP8266通过Arduino IDE连接Onenet云平台(MQTT)
JS function promotion and declaration promotion of VaR variable
Important methods of array and string
JS object and event learning notes
Several declarations about pointers [C language]
arduino获取随机数