异常:
2023-02-14 17:06:33.867 ERROR 19016 --- [s.client.Worker] c.a.nacos.client.security.SecurityProxy : login failed: {"code":500,"message":"<html><body><h1>Whitelabel Error Page</h1><p>This application has no explicit mapping for /error, so you are seeing this as a fallback.</p><div id='created'>Tue Feb 14 17:06:33 CST 2023</div><div>There was an unexpected error (type=Internal Server Error, status=500).</div></body></html>","header":{"header":{"Accept-Charset":"UTF-8","Connection":"close","Content-Language":"zh-CN","Content-Length":"287","Content-Type":"text/html;charset=UTF-8","Date":"Tue, 14 Feb 2023 09:06:33 GMT"},"originalResponseHeader":{"Connection":["close"],"Content-Language":["zh-CN"],"Content-Length":["287"],"Content-Type":["text/html;charset=UTF-8"],"Date":["Tue, 14 Feb 2023 09:06:33 GMT"]},"charset":"UTF-8"}}
分析:看日志信息是nacos相关的jar包错误,于是查看nacos配置,没问题啊。。。
原因:一开始检查了nacos的用户名和密码 没错是快速的看,比对代码后 发现密码错了一个字母,应为是手动拼写的,能复制还是应该复制