Postman 在同一令牌上第二次命中 API 时出现 java.lang.indexoutofboundsexception 错误

Postman gives java.lang.indexoutofboundsexception error when hitting the api second time on same token

提问人:DARAKHSHAN DARAKHSHAN 提问时间:10/20/2023 更新时间:10/20/2023 访问量:18

问:

当我生成新令牌并击中 api 时,它成功了,但是当我在相同的令牌上第二次击中 api 时,它给了我

    "code": "0101",
    "status": "Fail",
    "message": "java.lang.IndexOutOfBoundsException",
    "data": {
        "code": null,
        "status": null,
        "message": null,
        "errors": null,
        "info": null
    }
}

我点击的api是一个测试api

 @GetMapping("/test")
    public String getAllLeadsOne() {
        return new String("Hello");
    }

我无法理解这个问题。请帮帮我。

spring-boot 索引outofboundsexception

评论

0赞 Ajaj Ali 10/20/2023
请发布您的安全过滤器链代码或您的令牌解析器机制代码。从你的问题很难确定确切的原因。
0赞 DARAKHSHAN DARAKHSHAN 10/20/2023
非常感谢。但是我的问题得到了解决

答: 暂无答案