Java报empty key错误

这是什么问题呢?第一次遇见,是token问题嘛?还是什么问题?

img

配置密钥了没

我的回答怎么不见了。。。
目测是你的动作过滤器的配置文件有问题,检查下。

  • 这篇博客: Java数据结构之双向链表(配图详解,简单易懂)中的 🍉8.删除所有值为key的节点 部分也许能够解决你的问题, 你可以仔细阅读以下内容或跳转源博客中阅读:
  • 💡与7代码相同,只是无需跳出循环,让cur完成遍历,把关键字全部删除即可

        public void remove(int key) {
            Node cur=this.head;
            while(cur!=null) {
                if(cur.data==key) {//如果找到关键字key
                    if(cur==this.head) {//头节点的data为key
                        this.head=cur.next;//头节点后移完成头节点删除
                        if(this.head!=null)//防止空指针异常
                        this.head.prev=null;
                    }else {//中间找到key
                        cur.prev.next=cur.next;
                        if(cur.next!=null)
                        cur.next.prev=cur.prev;
                        else//如果cur.next==null,尾节点即为所需删除节点
                            this.tail=cur.prev;
                    }
                }
                cur=cur.next;//如果没有进if语句中,cur继续往后遍历
            }
        }