当前位置:网站首页>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 .
边栏推荐
- js题目:输入数组,最大的与第一个元素交换,最小的与最后一个元素交换,输出数组。
- C language, log print file name, function name, line number, date and time
- inline详细讲解【C语言】
- JS object and event learning notes
- Detailed explanation of Union [C language]
- RT thread API reference manual
- MySQL takes up too much memory solution
- GCC compilation options
- 优先级反转与死锁
- JS 函数提升和var变量的声明提升
猜你喜欢

uCOS-III 的特点、任务状态、启动

Time slice polling scheduling of RT thread threads

Fashion-Gen: The Generative Fashion Dataset and Challenge 论文解读&数据集介绍

JS function promotion and declaration promotion of VaR variable

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

Basic operations of databases and tables ----- view data tables

优先级反转与死锁

高通&MTK&麒麟 手機平臺USB3.0方案對比

Page performance optimization of video scene

AMBA、AHB、APB、AXI的理解
随机推荐
Basic operations of databases and tables ----- modifying data tables
History object
Gateway 根据服务名路由失败,报错 Service Unavailable, status=503
open-mmlab labelImg mmdetection
There are three iPhone se 2022 models in the Eurasian Economic Commission database
I2C bus timing explanation
Detailed explanation of 5g working principle (explanation & illustration)
RT-Thread API参考手册
Comparaison des solutions pour la plate - forme mobile Qualcomm & MTK & Kirin USB 3.0
Detailed explanation of Union [C language]
Arduino JSON data information parsing
C语言回调函数【C语言】
基於Redis的分布式ID生成器
C language callback function [C language]
Esp8266 connects to bafayun (TCP maker cloud) through Arduino IED
ES6语法总结--下篇(进阶篇 ES6~ES11)
level16
arduino UNO R3的寄存器写法(1)-----引脚电平状态变化
Dead loop in FreeRTOS task function
JS variable types and common type conversions