当前位置:网站首页>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 .
边栏推荐
- Classification, understanding and application of common methods of JS array
- Pytorch: tensor operation (I) contiguous
- JS正则表达式基础知识学习
- OPPO VOOC快充电路和协议
- 程序员老鸟都会搞错的问题 C语言基础 指针和数组
- Keyword inline (inline function) usage analysis [C language]
- open-mmlab labelImg mmdetection
- The first simple case of GNN: Cora classification
- 关于Gateway中使用@Controller的问题
- Navigator object (determine browser type)
猜你喜欢
Cannot change version of project facet Dynamic Web Module to 2.3.
uCOS-III 的特点、任务状态、启动
Time slice polling scheduling of RT thread threads
程序员老鸟都会搞错的问题 C语言基础 指针和数组
基于Redis的分布式锁 以及 超详细的改进思路
Kaggle competition two Sigma connect: rental listing inquiries (xgboost)
Feature of sklearn_ extraction. text. CountVectorizer / TfidVectorizer
优先级反转与死锁
ESP8266使用arduino连接阿里云物联网
Missing value filling in data analysis (focus on multiple interpolation method, miseforest)
随机推荐
Keyword inline (inline function) usage analysis [C language]
Common DOS commands
I2C bus timing explanation
MySQL占用内存过大解决方案
ES6语法总结--上篇(基础篇)
Types de variables JS et transformations de type communes
Fashion-Gen: The Generative Fashion Dataset and Challenge 论文解读&数据集介绍
Classification, understanding and application of common methods of JS array
C language, log print file name, function name, line number, date and time
Basic knowledge of lithium battery
高通&MTK&麒麟 手機平臺USB3.0方案對比
Pat 1097 duplication on a linked list (25 points)
(一)R语言入门指南——数据分析的第一步
Imgcat usage experience
Dead loop in FreeRTOS task function
Variable parameter principle of C language function: VA_ start、va_ Arg and VA_ end
Kconfig Kbuild
Problèmes avec MySQL time, fuseau horaire, remplissage automatique 0
锂电池基础知识
JS function promotion and declaration promotion of VaR variable