Registry / cloud / spring-cloud-starter-alibaba-sentinel

spring-cloud-starter-alibaba-sentinel

JSON →
library2.2.11javamavenunverified

Spring Cloud Alibaba Sentinel Starter integrates Sentinel flow control and circuit breaking into Spring Cloud applications.

<dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId> <version>2.2.11</version> </dependency>
INSTALL
IMPORT
SIG · SPRING-CLOUD-START
S
spring-cloud-starter-alibaba-sentinel
cloudjavav2.2.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SentinelResource
com.alibaba.csp.sentinel.annotation.SentinelResource

Use @SentinelResource annotation to define flow control rules.

import com.alibaba.csp.sentinel.annotation.SentinelResource; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class DemoController { @GetMapping("/hello") @SentinelResource(value = "hello", fallback = "fallback") public String hello() { return "Hello"; } public String fallback(Throwable t) { return "Fallback"; } }
Debug
Known issues
breakingVersion 2.2.x may have compatibility issues with Spring Cloud Hoxton or earlier.
fix
Use version 2.2.11 or later, or align with Spring Cloud Alibaba version mapping.
affects: <2.2.11
Upgrade
Version history
2.2.11latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
42 hits · last 30 days
node
32
OpenAI (training)
1
Resources
spring-cloud-starter-alibaba-sentinel — mvn dependency:get spring-cloud-starter-alibaba-sentinel · libregistry