Nacos客户端版本是无法直接在配置文件中配置账号 密码的,这种情况 怎么处理 ?

Nacos客户端使用spring-cloud-starter-alibaba-nacos-discovery:2.1.1 版本
服务端使用2.3.2版本且开启了权限认证, 客户端版本是无法直接在配置文件中配置账号 密码的,这种情况 怎么处理 ?使用了-Dnacos.config.password=nacos -Dnacos.config.username=nacos 抛出 Application failed to connect to Nacos server: "",但是我在配置文件中已经填写了 discovery:
server-addr: localhost:8848

展开
收起
真的很搞笑 2024-06-30 20:34:22 89 分享 版权
0 条回答
写回答
取消 提交回答

为微服务建设降本增效,为微服务落地保驾护航。

还有其他疑问?
咨询AI助理