当前位置:网站首页>Local call feign interface message 404
Local call feign interface message 404
2022-04-23 20:06:00 【qq_ forty-three million four hundred and thirty-two thousand an】
First, ensure that both local services are registered in the same registry , Then the following error is reported in the call :
call feign Failure :status 404 reading XxFeign#Xx(XxDataVO)
The reason is that... Is configured in the configuration file of the called service url And feign Configured during interface call url It doesn't match ;servlet: context-path: The back url As a whole url Part of , and feign The path written by the interface annotation is incomplete ;
# The configuration file of the called service
servlet:
context-path: /data
// Calling the service feign Interface
@PostMapping("/push")
ServiceResult pushData(@RequestBody ReqPushDataVO reqPushDataVO);
Solution :
1. Comment out servlet: context-path To configure ;
2.feign The interface annotation is full path @PostMapping("/data/push");
Either way .
版权声明
本文为[qq_ forty-three million four hundred and thirty-two thousand an]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231946348824.html
边栏推荐
猜你喜欢
Physical meaning of FFT: 1024 point FFT is 1024 real numbers. The actual input to FFT is 1024 complex numbers (imaginary part is 0), and the output is also 1024 complex numbers. The effective data is
@Mapperscan and @ mapper
Kubernetes entry to mastery - bare metal loadbalance 80 443 port exposure precautions
Understanding various team patterns in scrum patterns
@MapperScan与@Mapper
Is meituan, a profit-making company with zero foundation, hungry? Coupon CPS applet (with source code)
MySQL 进阶 锁 -- MySQL锁概述、MySQL锁的分类:全局锁(数据备份)、表级锁(表共享读锁、表独占写锁、元数据锁、意向锁)、行级锁(行锁、间隙锁、临键锁)
5 minutes to achieve wechat cloud applet payment function (including source code)
Kubernetes introduction to mastery - ktconnect (full name: kubernetes toolkit connect) is a small tool based on kubernetes environment to improve the efficiency of local test joint debugging.
MFCC: Mel频率倒谱系数计算感知频率和实际频率转换
随机推荐
How to select the third-party package of golang
uIP1. 0 actively sent problem understanding
IIS data conversion problem: 16bit to 24bit
Mysql database - single table query (I)
Design of warehouse management database system
Zero cost, zero foundation, build profitable film and television applet
AQS learning
Grafana shares links with variable parameters
【webrtc】Add x264 encoder for CEF/Chromium
程序设计语言基础(2)
Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies
[H264] hevc H264 parsing and frame rate setting of the old version of libvlc
Unity general steps for creating a hyper realistic 3D scene
NC basic usage
Design of library management database system
nc基础用法3
Distinction between pointer array and array pointer
[2022] regard 3D target detection as sequence prediction - point2seq: detecting 3D objects as sequences
【2022】将3D目标检测看作序列预测-Point2Seq: Detecting 3D Objects as Sequences
NC basic usage 2