Skip to content

io microsphere alibaba sentinel spring boot condition ConditionalOnSentinelEnabled

github-actions[bot] edited this page Jul 3, 2026 · 3 revisions

ConditionalOnSentinelEnabled

Type: Annotation | Module: microsphere-alibaba-sentinel-spring-boot | Package: io.microsphere.alibaba.sentinel.spring.boot.condition | Since: 1.0.0

Source: microsphere-alibaba-sentinel-spring-boot/src/main/java/io/microsphere/alibaba/sentinel/spring/boot/condition/ConditionalOnSentinelEnabled.java

Overview

ConditionalOnProperty based annotation for Alibaba Sentinel enabled property.

Declaration

public @interface ConditionalOnSentinelEnabled

Author: Mercy

Version Information

  • Introduced in: 1.0.0
  • Current Project Version: 0.2.0-SNAPSHOT

Version Compatibility

This component is tested and compatible with the following Java versions:

Java Version Status
Java 17 ✅ Compatible
Java 21 ✅ Compatible
Java 25 ✅ Compatible

Usage

Maven Dependency

Add the following dependency to your pom.xml:

<dependency>
    <groupId>io.github.microsphere-projects</groupId>
    <artifactId>microsphere-alibaba-sentinel-spring-boot</artifactId>
    <version>${microsphere-alibaba-sentinel.version}</version>
</dependency>

Tip: Use the BOM (microsphere-alibaba-sentinel-dependencies) for consistent version management. See the Getting Started guide.

Import

import io.microsphere.alibaba.sentinel.spring.boot.condition.ConditionalOnSentinelEnabled;

See Also

  • SentinelRedisAutoConfiguration

This documentation was auto-generated from the source code of microsphere-alibaba-sentinel.

Clone this wiki locally