Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
284 views
in Technique[技术] by (71.8m points)

心态崩了 前后端接口数据不一致

后端打印返回的数据是

{"code":0,"message":"成功"}

但是在前端F12后Network里面的Response是下面这个

{"code":0,"message":"成功","data":null}{"timestamp":"2020-07-02T11:33:37.447+0000","status":200,"error":"OK","message":"Session with id [4be5fa67-f0e8-466f-91ae-2fce74d957ab] has expired. Last access time: 20-7-2 下午7:33.  Current time: 20-7-2 下午7:33.  Session timeout is set to 0 seconds (0 minutes)","trace":"org.apache.shiro.session.ExpiredSessionException: Session with id [4be5fa67-f0e8-466f-91ae-2fce74d957ab] has expired. Last access time: 20-7-2 下午7:33.  Current time: 20-7-2 下午7:33.  Session timeout is set to 0 seconds (0 minutes)
at"}

懵逼ing


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

前端从来不关心你后段自己打印输出什么,我只关心浏览器network response的返回结果


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...