#JWT token 报错secret key byte array cannot be null or empty.] with root cause
#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
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
原因
名字太短???
什么设定啊这是
随便加两个(顺便吐槽一下它的机制)
jwt:
config:
key: sbjwt
ttl: 360000
完事
还没有评论,来说两句吧...