切面around注解不加responsebody注解会重复调两次bug

场景:

用postman发送本地接口地址测试时,一直返回404,但是项目有这个接口,并且日志已经进来了但是最后还是反404not_found

原因:

看日志发现第一次调用接口的日志以及返回参数是正常返回succes了 但是还没返回到postman又被调用了一次 ,这次调用接口地址变了 导致找不到这个接口返回404,并且把第一个的返回值覆盖了

解决:

加上@responsebody,这个问题也是之前遇到的有点模糊 但可能确实存在的一个bug

相关推荐
奶糖 肥晨1 小时前
解决 UniApp 自定义弹框被图片或 Canvas 覆盖的 Bug
uni-app·bug
phantom_1114 天前
Cursor 分析 bug 记录
bug·cursor
Direction_Wind5 天前
Flinksql bug: Heartbeat of TaskManager with id container_XXX timed out.
大数据·flink·bug
AIBigModel8 天前
智能情趣设备、爆 bug:可被远程操控。。。
网络·安全·bug
Direction_Wind8 天前
flinksql bug: Received resultset tuples, but no field str
bug
远瞻。8 天前
【bug】diff-gaussian-rasterization Windows下编译 bug 解决
windows·bug
中草药z8 天前
【测试】Bug+设计测试用例
功能测试·测试工具·测试用例·bug·压力测试·测试
我又来搬代码了9 天前
【Android】【bug】Json解析错误Expected BEGIN_OBJECT but was STRING...
android·json·bug
葵野寺9 天前
【软件测试】BUG篇 — 详解
bug·测试
青青子衿越12 天前
微信小程序右上角分享页面找不到路径bug
微信小程序·小程序·bug