1、错误信息:
get data from Nacos error,dataId:job,
<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'>Wed Dec 20 15:56:40 CST 2023</div><div>There was an unexpected error (type=Forbidden, status=403).</div><div>user not found!</div></body></html>
2、bootstrap.yml配置
nacos: config: server-addr: 192.168.1.104:8848 group: DEFAULT_GROUP prefix: lamp-job file-extension: yaml namespace: aa9408cf-8f48-4fc6-8833-5d883e6fc203 username: nacos password: nacos # contextPath: /nacos discovery: server-addr: 192.168.1.104:8848 namespace: aa9408cf-8f48-4fc6-8833-5d883e6fc203 username: nacos password: nacos
3、说明
3.1、上面的配置把授权nacos.core.auth.enabled=false时,微服务可以正常启动运行。改为true之后,就报第1点的错误。
请路过的大神指点一下