随笔 - 154  文章 - 0  评论 - 4  阅读 - 49544

nacos1.40启动失败,注册服务

nacos集成参考步骤

https://github.com/alibaba/spring-cloud-alibaba/blob/master/spring-cloud-alibaba-examples/nacos-example/nacos-discovery-example/readme-zh.md

启动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

 

posted on   daofree  阅读(3387)  评论(0编辑  收藏  举报
编辑推荐:
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现
· 25岁的心里话
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示