解决sentinel管理平台配置了系统配置不生效

背景依赖:

依赖、软件 版本
spring cloud alibaba 2023.0.1.0
Sentinel控制台jar包 1.8.8

问题:

配置了流控、熔断都是生效的,配置系统配置就不生效。

解决方法:增加下依赖sentinel-core、sentinel-transport-simple-http,一定要保证依赖版本相兼容

    
        <!-- Sentinel Core -->
        <dependency>
            <groupId>com.alibaba.csp</groupId>
            <artifactId>sentinel-core</artifactId>
            <version>1.8.3</version>
        </dependency>

        <!-- Sentinel Transport (Optional) -->
        <dependency>
            <groupId>com.alibaba.csp</groupId>
            <artifactId>sentinel-transport-simple-http</artifactId>
            <version>1.8.3</version>
        </dependency>
        <!-- sentinel限流 -->
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
			<version>2023.0.1.0</version>
        </dependency>
        <!--sentinel持久化依赖,采用Nacos作为规则配置数据源。-->
        <dependency>
            <groupId>com.alibaba.csp</groupId>
            <artifactId>sentinel-datasource-nacos</artifactId>
			<version>1.8.6</version>
        </dependency>
posted @   xudong5273  阅读(162)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· C#/.NET/.NET Core技术前沿周刊 | 第 29 期(2025年3.1-3.9)
· 从HTTP原因短语缺失研究HTTP/2和HTTP/3的设计差异
点击右上角即可分享
微信分享提示