当前位置:网站首页>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 variable types and common type conversions
- JS正则表达式基础知识学习
- Arduino JSON data information parsing
- JS object and event learning notes
- Basic operations of databases and tables ----- view data tables
- Mp3mini playback module Arduino < dfrobotdfplayermini H> function explanation
- open-mmlab labelImg mmdetection
- Rough analysis of map file
- Bubble sort [C language]
- MySQL時間、時區、自動填充0的問題
猜你喜欢
arduino JSON数据信息解析
STM32 how to locate the code segment that causes hard fault
Redis cache update strategy, cache penetration, avalanche, breakdown problems
Symbolic representation of functions in deep learning papers
CUDA C programming authoritative guide Grossman Chapter 4 global memory
基于Redis的分布式ID生成器
Kaggle competition two Sigma connect: rental listing inquiries
JS variable types and common type conversions
ESP learning problem record
Stm32f1+bc20+mqtt+freertos system is connected to Alibaba cloud to transmit temperature and humidity and control LED lights
随机推荐
Custom view puzzle getcolor r.color The color obtained by colorprimary is incorrect
Page performance optimization of video scene
Reno7 60W超级闪充充电架构
JS正则表达式基础知识学习
Fashion-Gen: The Generative Fashion Dataset and Challenge 论文解读&数据集介绍
Walk into WPF's drawing Bing Dwen Dwen
GCC compilation options
RT-Thread API参考手册
MySQL占用内存过大解决方案
.elf .map .list .hex文件
Comparison of solutions of Qualcomm & MTK & Kirin mobile platform USB3.0
I2C总线时序详解
JS变量类型以及常用类型转换
A possible cause and solution of "stuck" main thread of RT thread
高通&MTK&麒麟 手機平臺USB3.0方案對比
arduino获取随机数
Cannot change version of project facet Dynamic Web Module to 2.3.
Gallery's image browsing and component learning
ESP8266通过Arduino IDE连接Onenet云平台(MQTT)
Basic operations of databases and tables ----- modifying data tables