@@ -35,7 +35,7 @@ Below is a simple demo that guides new users to use Sentinel in just 3 steps. It | |||||
### 1. Add Dependency | ### 1. Add Dependency | ||||
**Note:** Sentinel requires Java 6 or later. | |||||
**Note:** Sentinel requires Java 7 or later. | |||||
If your application is build in maven, just add the following code in pom.xml. | If your application is build in maven, just add the following code in pom.xml. | ||||
@@ -5,7 +5,7 @@ | |||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<artifactId>sentinel-parent</artifactId> | <artifactId>sentinel-parent</artifactId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
<packaging>pom</packaging> | <packaging>pom</packaging> | ||||
<name>${project.artifactId}</name> | <name>${project.artifactId}</name> | ||||
@@ -7,7 +7,7 @@ | |||||
<parent> | <parent> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<artifactId>sentinel-parent</artifactId> | <artifactId>sentinel-parent</artifactId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<artifactId>sentinel-adapter</artifactId> | <artifactId>sentinel-adapter</artifactId> | ||||
<packaging>pom</packaging> | <packaging>pom</packaging> | ||||
@@ -6,7 +6,7 @@ | |||||
<parent> | <parent> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<artifactId>sentinel-adapter</artifactId> | <artifactId>sentinel-adapter</artifactId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
<artifactId>sentinel-dubbo-adapter</artifactId> | <artifactId>sentinel-dubbo-adapter</artifactId> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<artifactId>sentinel-adapter</artifactId> | <artifactId>sentinel-adapter</artifactId> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
<artifactId>sentinel-grpc-adapter</artifactId> | <artifactId>sentinel-grpc-adapter</artifactId> | ||||
@@ -6,7 +6,7 @@ | |||||
<parent> | <parent> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<artifactId>sentinel-adapter</artifactId> | <artifactId>sentinel-adapter</artifactId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<artifactId>sentinel-web-servlet</artifactId> | <artifactId>sentinel-web-servlet</artifactId> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<artifactId>sentinel-adapter</artifactId> | <artifactId>sentinel-adapter</artifactId> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
<artifactId>sentinel-zuul-adapter</artifactId> | <artifactId>sentinel-zuul-adapter</artifactId> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<artifactId>sentinel-parent</artifactId> | <artifactId>sentinel-parent</artifactId> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<artifactId>sentinel-parent</artifactId> | <artifactId>sentinel-parent</artifactId> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
<packaging>pom</packaging> | <packaging>pom</packaging> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<artifactId>sentinel-cluster</artifactId> | <artifactId>sentinel-cluster</artifactId> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<artifactId>sentinel-cluster</artifactId> | <artifactId>sentinel-cluster</artifactId> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<artifactId>sentinel-cluster</artifactId> | <artifactId>sentinel-cluster</artifactId> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
@@ -6,7 +6,7 @@ | |||||
<parent> | <parent> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<artifactId>sentinel-parent</artifactId> | <artifactId>sentinel-parent</artifactId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<artifactId>sentinel-core</artifactId> | <artifactId>sentinel-core</artifactId> | ||||
<packaging>jar</packaging> | <packaging>jar</packaging> | ||||
@@ -30,7 +30,7 @@ import com.alibaba.csp.sentinel.util.VersionUtil; | |||||
*/ | */ | ||||
public final class Constants { | public final class Constants { | ||||
public static final String SENTINEL_VERSION = VersionUtil.getVersion("1.4.2"); | |||||
public static final String SENTINEL_VERSION = VersionUtil.getVersion("1.5.0"); | |||||
public final static int MAX_CONTEXT_NAME_SIZE = 2000; | public final static int MAX_CONTEXT_NAME_SIZE = 2000; | ||||
public final static int MAX_SLOT_CHAIN_SIZE = 6000; | public final static int MAX_SLOT_CHAIN_SIZE = 6000; | ||||
@@ -6,7 +6,7 @@ | |||||
<parent> | <parent> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<artifactId>sentinel-parent</artifactId> | <artifactId>sentinel-parent</artifactId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<artifactId>sentinel-dashboard</artifactId> | <artifactId>sentinel-dashboard</artifactId> | ||||
@@ -6,7 +6,7 @@ | |||||
<parent> | <parent> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<artifactId>sentinel-parent</artifactId> | <artifactId>sentinel-parent</artifactId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<artifactId>sentinel-demo</artifactId> | <artifactId>sentinel-demo</artifactId> | ||||
<packaging>pom</packaging> | <packaging>pom</packaging> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<artifactId>sentinel-demo</artifactId> | <artifactId>sentinel-demo</artifactId> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<artifactId>sentinel-demo</artifactId> | <artifactId>sentinel-demo</artifactId> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
@@ -6,7 +6,7 @@ | |||||
<parent> | <parent> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<artifactId>sentinel-demo</artifactId> | <artifactId>sentinel-demo</artifactId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<artifactId>sentinel-demo-basic</artifactId> | <artifactId>sentinel-demo-basic</artifactId> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<artifactId>sentinel-demo</artifactId> | <artifactId>sentinel-demo</artifactId> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<artifactId>sentinel-demo-cluster</artifactId> | <artifactId>sentinel-demo-cluster</artifactId> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<artifactId>sentinel-demo-cluster</artifactId> | <artifactId>sentinel-demo-cluster</artifactId> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<artifactId>sentinel-demo</artifactId> | <artifactId>sentinel-demo</artifactId> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
@@ -6,7 +6,7 @@ | |||||
<parent> | <parent> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<artifactId>sentinel-demo</artifactId> | <artifactId>sentinel-demo</artifactId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<artifactId>sentinel-demo-dynamic-file-rule</artifactId> | <artifactId>sentinel-demo-dynamic-file-rule</artifactId> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<artifactId>sentinel-demo</artifactId> | <artifactId>sentinel-demo</artifactId> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<artifactId>sentinel-demo</artifactId> | <artifactId>sentinel-demo</artifactId> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<artifactId>sentinel-demo</artifactId> | <artifactId>sentinel-demo</artifactId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<artifactId>sentinel-demo</artifactId> | <artifactId>sentinel-demo</artifactId> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<artifactId>sentinel-demo</artifactId> | <artifactId>sentinel-demo</artifactId> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
@@ -6,7 +6,7 @@ | |||||
<parent> | <parent> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<artifactId>sentinel-parent</artifactId> | <artifactId>sentinel-parent</artifactId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<artifactId>sentinel-extension</artifactId> | <artifactId>sentinel-extension</artifactId> | ||||
<packaging>pom</packaging> | <packaging>pom</packaging> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<artifactId>sentinel-extension</artifactId> | <artifactId>sentinel-extension</artifactId> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<artifactId>sentinel-extension</artifactId> | <artifactId>sentinel-extension</artifactId> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
@@ -6,7 +6,7 @@ | |||||
<parent> | <parent> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<artifactId>sentinel-extension</artifactId> | <artifactId>sentinel-extension</artifactId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<artifactId>sentinel-datasource-extension</artifactId> | <artifactId>sentinel-datasource-extension</artifactId> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<artifactId>sentinel-extension</artifactId> | <artifactId>sentinel-extension</artifactId> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<artifactId>sentinel-extension</artifactId> | <artifactId>sentinel-extension</artifactId> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<artifactId>sentinel-extension</artifactId> | <artifactId>sentinel-extension</artifactId> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<artifactId>sentinel-extension</artifactId> | <artifactId>sentinel-extension</artifactId> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
@@ -6,7 +6,7 @@ | |||||
<parent> | <parent> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<artifactId>sentinel-parent</artifactId> | <artifactId>sentinel-parent</artifactId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<artifactId>sentinel-transport</artifactId> | <artifactId>sentinel-transport</artifactId> | ||||
<description>The transport module of Sentinel</description> | <description>The transport module of Sentinel</description> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<artifactId>sentinel-transport</artifactId> | <artifactId>sentinel-transport</artifactId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
<packaging>jar</packaging> | <packaging>jar</packaging> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<artifactId>sentinel-transport</artifactId> | <artifactId>sentinel-transport</artifactId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
<artifactId>sentinel-transport-netty-http</artifactId> | <artifactId>sentinel-transport-netty-http</artifactId> | ||||
@@ -5,7 +5,7 @@ | |||||
<parent> | <parent> | ||||
<artifactId>sentinel-transport</artifactId> | <artifactId>sentinel-transport</artifactId> | ||||
<groupId>com.alibaba.csp</groupId> | <groupId>com.alibaba.csp</groupId> | ||||
<version>1.4.2</version> | |||||
<version>1.5.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||