zhhjtest 2022-10-09 17:01 采纳率: 100%
浏览 314
已结题

服务注册成功 但nacos服务列表不显示

服务注册成功 但nacos服务列表不显示
022-10-09 16:55:46.319  INFO 7244 --- [           main] com.szxs.NacosProviderApplication        : No active profile set, falling back to default profiles: default
2022-10-09 16:55:46.818  INFO 7244 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=2d1cd515-6202-32be-a481-55f7333280b1
2022-10-09 16:55:47.020  INFO 7244 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2022-10-09 16:55:47.030  INFO 7244 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2022-10-09 16:55:47.030  INFO 7244 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.46]
2022-10-09 16:55:47.140  INFO 7244 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2022-10-09 16:55:47.140  INFO 7244 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 800 ms
2022-10-09 16:55:47.195  WARN 7244 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2022-10-09 16:55:47.195  INFO 7244 --- [           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.
2022-10-09 16:55:47.200  WARN 7244 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2022-10-09 16:55:47.200  INFO 7244 --- [           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.
2022-10-09 16:55:47.330  INFO 7244 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
2022-10-09 16:55:47.978  INFO 7244 --- [           main] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService 'Nacos-Watch-Task-Scheduler'
2022-10-09 16:55:48.944  INFO 7244 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
2022-10-09 16:55:48.960  INFO 7244 --- [           main] c.a.c.n.registry.NacosServiceRegistry    : nacos registry, DEFAULT_GROUP nacos-provider 192.168.6.134:8080 register finished
2022-10-09 16:55:49.487  INFO 7244 --- [           main] com.szxs.NacosProviderApplication        : Started NacosProviderApplication in 7.14 seconds (JVM running for 8.349)


img

已经检查了导包
<dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
        </dependency>

是什么原因?

  • 写回答

4条回答 默认 最新

  • zhhjtest 2022-10-10 17:22
    关注

    问题解决了,不是不显示,而是在其他端口显示 8848Nacos服务列表找不到自己服务,但是8858却都能显示,因为我nacos是以集群模式打开的,我的nacos中的cluster.conf文件没有配置正确导致服务显示的问题所导致

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

问题事件

  • 系统已结题 10月18日
  • 已采纳回答 10月10日
  • 创建了问题 10月9日

悬赏问题

  • ¥20 关于#stm32#的问题:需要指导自动酸碱滴定仪的原理图程序代码及仿真
  • ¥20 设计一款异域新娘的视频相亲软件需要哪些技术支持
  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因