解决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 @ 2024-10-30 11:21  xudong5273  阅读(351)  评论(0)    收藏  举报