[com.alibaba.nacos.client.config.security.updater] ERROR c.a.n.c.s.SecurityProxy [SecurityProxy.java
[com.alibaba.nacos.client.config.security.updater] ERROR c.a.n.c.s.SecurityProxy [SecurityProxy.java:154] - [SecurityProxy] login http request failed url: http://127.0.0.1:8848/nacos/v1/auth/users/log
·
[com.alibaba.nacos.client.config.security.updater] ERROR c.a.n.c.s.SecurityProxy [SecurityProxy.java:154] - [SecurityProxy] login http request failed url: http://127.0.0.1:8840/nacos/v1/auth/users/login, params: {username=}, bodyMap: {password=}, errorMsg: errCode: 100, errMsg: Nacos serialize for class [com.alibaba.nacos.common.http.HttpRestResult] failed.
原始配置:
spring: application: name: cloud: nacos: enabled: false server-addr: http://127.0.0.1:8848 username: password: config: group: prefix: file-extension: yaml discovery: enabled: false group:
即我们的配置文件需要配置成这样:
-
spring.cloud.nacos.config.access-key=${AK}
-
spring.cloud.nacos.config.secret-key=${SK}
AK,SK是用于读取nacos配置而创建的用户的AK,SK。
更多推荐
已为社区贡献3条内容
所有评论(0)