pom、application文件配置都没问题

pom配置

报错日志:
2024-05-28 08:21:52.010 WARN 1796 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop'; nested exception is java.lang.reflect.UndeclaredThrowableException
2024-05-28 08:21:52.623 INFO 1796 --- [ main] o.s.s.c.ThreadPoolTaskScheduler : Shutting down ExecutorService 'Nacos-Watch-Task-Scheduler'
2024-05-28 08:21:52.624 INFO 1796 --- [ main] c.a.n.p.a.s.c.ClientAuthPluginManager : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
2024-05-28 08:21:52.624 INFO 1796 --- [ main] c.a.n.p.a.s.c.ClientAuthPluginManager : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
2024-05-2

在尝试连接Nacos服务器时遇到启动失败的问题,日志显示客户端和服务端版本不一致导致。解决方法是将pom配置中的Nacos客户端版本更改为与服务器相匹配的2.3.1版本,这解决了连接失败的问题。提醒开发者注意版本兼容性问题。
最低0.47元/天 解锁文章
925

被折叠的 条评论
为什么被折叠?



