Nacos本地启动报错

2023-07-27 22:21:00
253

错误信息

The specified key byte array is 0 bits which is not secure enough for any JWT HMAC-SHA algorithm.  The JWT JWA Specification (RFC 7518, Section 3.2) states that keys used with HMAC-SHA algorithms MUST have a size >= 256 bits (the key size must be greater than or equal to the hash output size).  See https://tools.ietf.org/html/rfc7518#section-3.2 for more information


解决:nacos目录下conf下application.properties中,需要添加token secret

```

### The default token (Base64 String):

nacos.core.auth.plugin.nacos.token.secret.key=SecretKey0123456789012jkjskf90123456789012345678901234567890123456789

```