#JWT token 报错secret key byte array cannot be null or empty.] with root cause

小灰灰 2023-10-03 12:27 100阅读 0赞

#JWT token 报错Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalArgumentException: secret key byte array cannot be null or empty.] with root cause

  1. Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalArgumentException: secret key byte array cannot be null or empty.] with root cause

原因

在这里插入图片描述

名字太短???

什么设定啊这是

随便加两个(顺便吐槽一下它的机制)

  1. jwt:
  2. config:
  3. key: sbjwt
  4. ttl: 360000

完事

发表评论

表情:
评论列表 (有 0 条评论,100人围观)

还没有评论,来说两句吧...

相关阅读