admin管理员组

文章数量:1530518

最近在一个微服务练习项目中出现以下异常

Exception in thread "main" feign.FeignException$InternalServerError: [500] during [POST] to [http://trip-article-server/strategies/statisDataInit] [IStrategyFeginService#statisDataInits()]: [{"timestamp":"2023-09-19T12:47:42.749+00:00","status":500,"error":"Internal Server Error","message":"","path":"/strategies/statisDataInit"}]

是一个feign远程调用时非常容易出现的情况,必要的配置,以及能不能通过路径跳转到接口可以基本判断我们的远程调用没有问题,但还是报了如上错误,经过简单测试,发现主要原因是因为接口本身的方法出现了问题

可以正常跳转

最后发现是在业务逻辑中 在mybatis-plus中 对应的表 不存在!!因为之前更新mysql时 忘记同步那个表了  导致最初写的时候没问题  后面再去看一直报FeignException 的异常。要注意细心检查!!

本文标签: 异常threadMainFeignException