我报错内容是这样的:
WARN Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'memoryMonitor' defined in URL [jar:file:/D:/nacos/target/nacos-server.jar!/BOOT-INF/lib/nacos-config-2.0.4.jar!/com/alibaba/nacos/config/server/monitor/MemoryMonitor.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'asyncNotifyService': Unsatisfied dependency expressed through field 'dumpService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'externalDumpService': Invocation of init method failed; nested exception is ErrCode:500, ErrMsg:Nacos Server did not start because dumpservice bean construction failure :
No DataSource set
一般网上报错都是有许多解决方案的,它报错内容是关于数据库的 ,大家往数据库方向走准没错。
我这里拓展一个方案,因为我是学生,下了禅道本地的,所以会产生,mysqlzt这个服务
如图所示
我报错了,因为是两个数据库服务,导致我的Nacos无法运行,报错。所以我直接关闭这个就行了,当然如果有这个mysqlzt服务,idea加载数据库也没办法,关闭就行了。
关闭之后:
加载成功了。
望周知!!!!