nacos1.40启动失败,注册服务
nacos集成参考步骤
启动nacos
在微服务中添加nacos依赖,yml中配置服务名,服务地址
添加注解 @EnableDiscoveryClient
1.40版本失败,默认集群启动
java.io.IOException: java.lang.IllegalArgumentException: db.num is null
下面连接没参考
https://github.com/alibaba/nacos/issues/4074
参考了这个连接,解决默认集群启动失败问题!
https://blog.csdn.net/weixin_48040732/article/details/109492067
使用低版本1.13,可以启动成功
服务启动出现警告,也注册上了nacos
2020-12-29 08:36:52.964 WARN 20248 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2020-12-29 08:36:52.964 INFO 20248 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2020-12-29 08:36:52.967 WARN 20248 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2020-12-29 08:36:52.967 INFO 20248 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2020-12-29 08:36:53.102 INFO 20248 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2020-12-29 08:36:56.606 INFO 20248 --- [ main] o.s.cloud.commons.util.InetUtils : Cannot determine local hostname
2020-12-29 08:36:56.629 INFO 20248 --- [ main] o.s.s.c.ThreadPoolTaskScheduler : Initializing ExecutorService 'Nacos-Watch-Task-Scheduler'
2020-12-29 08:37:00.714 INFO 20248 --- [ main] o.s.cloud.commons.util.InetUtils : Cannot determine local hostname
2020-12-29 08:37:01.321 INFO 20248 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 7000 (http) with context path ''
2020-12-29 08:37:01.339 INFO 20248 --- [ main] c.a.c.n.registry.NacosServiceRegistry : nacos registry, DEFAULT_GROUP gulimall-coupon 192.168.206.1:7000 register finished
2020-12-29 08:37:05.294 INFO 20248 --- [ main] o.s.cloud.commons.util.InetUtils : Cannot determine local hostname
2020-12-29 08:37:05.329 INFO 20248 --- [ main] c.d.g.coupon.GulimallCouponApplication : Started GulimallCouponApplication in 19.941 seconds (JVM running for 21.941)
https://blog.csdn.net/lizz861109/article/details/105488960
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现
· 25岁的心里话