org.springframework.context.ApplicationContextException: Failed to start bean ‘webServerStartStop’; nested exception is java.lang.reflect.UndeclaredThrowableException

集群nacos后 用了nginx作为代理, 启动时候一直转圈圈…
可以明确告诉你 错的地方只有三个
1.nacos配置文件的ip地址有问题
2.nginx的 upstream nacos-cluster { 地址有问题 }
3.java的yml的server-addr地址有问题

采坑过程很痛苦, 用时差不多10个小时解决的.
1.遇到这个错误, 创建一个文件夹,nacos-cluster 里面解压nacos
注意, nacos的 集群配置先不用写, 先去application.properties 设置端口和开放数据库的配置

2,去nginx的nginx.conf设置集群信息

更多推荐

[完美解决] Failed to start bean ‘webServerStartStop‘; nested exception is java.lang.