nacos启动报错 Error creating bean with name ‘authFilterRegistration‘ defined in class path resource
今天启动nacos的时候突然报错,nacos启动界面报错信息如下:
-
Error creating bean with name 'authFilterRegistration' defined in class path resource
-
[com/alibaba/nacos/core/auth/AuthConfig.class]:
-
Bean instantiation via factory method failed;
-
nested exception is org.springframework.beans.BeanInstantiationException:
-
Failed to instantiate [org.springframework.boot.web.servlet.FilterRegistrationBean]:
-
Factory method 'authFilterRegistration' threw exception;
-
nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException:
-
Error creating bean with name 'authFilter':
-
Unsatisfied dependency expressed through field 'authManager';
-
nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException:
-
Error creating bean with name 'nacosAuthManager':
-
Unsatisfied dependency expressed through field 'authenticationManager';
-
nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException:
-
Error creating bean with name 'nacosAuthConfig':
-
Unsatisfied dependency expressed through field 'userDetailsService';
-
nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException:
-
Error creating bean with name 'nacosUserDetailsServiceImpl':
-
Unsatisfied dependency expressed through field 'userPersistService';
-
nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException:
-
Error creating bean with name 'externalUserPersistServiceImpl':
-
Unsatisfied dependency expressed through field 'persistService';
-
nested exception is org.springframework.beans.factory.BeanCreationException:
-
Error creating bean with name 'externalStoragePersistServiceImpl':
-
Invocation of init method failed; nested exception is java.lang.RuntimeException:
-
java.lang.RuntimeException: [db-load-error]load jdbc.properties error
idea后台打印错误信息:
[NACOS SocketTimeoutException httpGet] currentServerAddr:http://localhost:8848, err : connect timed out
原因分析:项目可能没有正确加载nacos相关文件
解决办法:删除现有nacos文件夹,重新解压或下载nacos压缩包,启动startup.cmd,问题解决
若还报错,可能是startup.cmd文件中set MODE = ""不恰当
-
set BASE_DIR="SE_DIR:~0,-5%"
-
-
set CUSTOM_SEARCH_LOCATIONS=file:SE_DIR%/conf/
-
-
set MODE="cluster"
-
set FUNCTION_MODE="all"
-
set SERVER=nacos-server
-
set MODE_INDEX=-1
-
set FUNCTION_MODE_INDEX=-1
-
set SERVER_INDEX=-1
-
set EMBEDDED_STORAGE_INDEX=-1
-
set EMBEDDED_STORAGE=""
解决办法:将set MODE="cluster"改为set MODE="standalone"即可。
这篇好文章是转载于:学新通技术网
- 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
- 本站站名: 学新通技术网
- 本文地址: /boutique/detail/tanhfckegk
系列文章
更多
同类精品
更多
-
photoshop保存的图片太大微信发不了怎么办
PHP中文网 06-15 -
Android 11 保存文件到外部存储,并分享文件
Luke 10-12 -
《学习通》视频自动暂停处理方法
HelloWorld317 07-05 -
word里面弄一个表格后上面的标题会跑到下面怎么办
PHP中文网 06-20 -
photoshop扩展功能面板显示灰色怎么办
PHP中文网 06-14 -
微信公众号没有声音提示怎么办
PHP中文网 03-31 -
excel下划线不显示怎么办
PHP中文网 06-23 -
excel打印预览压线压字怎么办
PHP中文网 06-22 -
怎样阻止微信小程序自动打开
PHP中文网 06-13 -
TikTok加速器哪个好免费的TK加速器推荐
TK小达人 10-01