NACOS 2.2.2 com.alibaba.nacos.api.exception.NacosException: user not found!

因服务端设置了鉴权,nacos.core.auth.enabled=true(参照官方文档https://nacos.io/zh-cn/docs/auth.html)
客户端需增加相关配置(username和password)

spring:
  application:
    name: xxxxx
  cloud:
    nacos:
      server-addr: xxxxxx
      config:
        file-extension: yaml
        refresh-enabled: true
      username: nacos
      password: nacos
posted @ 2023-05-18 16:15  肆拾書時  阅读(2798)  评论(1)    收藏  举报