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
版权声明:本文标题:异常Exception in thread “main“ feign.FeignException$InternalServerError: [500] during [POST] to [http: 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dianzi/1726225114a1061416.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论