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

服务注册成功 但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日

悬赏问题

  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?