因服务端设置了鉴权,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
标签:username,exception,nacos,NACOS,api,2.2,password
From: https://www.cnblogs.com/qniansi/p/17412308.html