• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

最新版sentinel console空白,找不到服务列表

武飞扬头像
猿份哥
帮助1

原文:https://www.lskyf.com/post/240

最新版本的sentinel控制台服务列表空白需要进行如下检查

检查1:java版本太高

sentinel还不支持最新的java版本列如java19,需要切换到所支持的版本,如java8

检查2:spring boot , spring cloud alibaba和spring cloud 版本对应关系

点击查看https://github.com/alibaba/spring-cloud-alibaba/wiki/版本说明

检查3:注意pom.xml文件需要引入spring-boot-actuator依赖

  1.  
    <!--sentinel start-->
  2.  
    <dependency>
  3.  
    <groupId>org.springframework.boot</groupId>
  4.  
    <artifactId>spring-boot-actuator</artifactId>
  5.  
    </dependency>
  6.  
    <dependency>
  7.  
    <groupId>com.alibaba.cloud</groupId>
  8.  
    <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
  9.  
    </dependency>
  10.  
    <!--sentinel end-->

检查4:application.yml配置,

注意配置spring.cloud.sentinel.eager=true以及management.endpoint.sentinel.enabled=true,端口被占用也会空白,可将默认8719修改为其他端口

  1.  
    spring:
  2.  
    application:
  3.  
    name: service-order
  4.  
     
  5.  
    # nacos注册中心配置
  6.  
    cloud:
  7.  
    nacos:
  8.  
    discovery:
  9.  
    server-addr: 127.0.0.1:8848
  10.  
     
  11.  
    sentinel:
  12.  
    transport:
  13.  
    # sentinel api端口,默认8719
  14.  
    port: 8719
  15.  
    # dashboard地址
  16.  
    dashboard: localhost:8080
  17.  
    # 配置心跳
  18.  
    eager: true
  19.  
    management:
  20.  
    endpoint:
  21.  
    sentinel:
  22.  
    enabled: true

这些将对你有帮助:

sentinel github demo

sentinel官方文档

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhgjkgje
系列文章
更多 icon
同类精品
更多 icon
继续加载