- 添加 sentinel

pull/1/head
sin 2019-05-15 16:44:13 +08:00
parent 2187ae2662
commit 633c7504a4
3 changed files with 18 additions and 2 deletions

View File

@ -46,6 +46,7 @@
<xxl-job.version>2.0.1</xxl-job.version>
<guava.version>27.0.1-jre</guava.version>
<rocketmq-spring-boot-starter.version>2.0.1</rocketmq-spring-boot-starter.version>
<sentinel.version>0.9.0.RELEASE</sentinel.version>
<maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
<org.projectlombok.version>1.16.14</org.projectlombok.version>
@ -216,6 +217,12 @@
<artifactId>spring-boot-admin-starter-client</artifactId>
<version>${spring-boot-admin-starter-client.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
<version>${sentinel.version}</version>
</dependency>
<!-- Test 相关 -->

View File

@ -60,9 +60,10 @@
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-client</artifactId>
</dependency>
<!-- sentinel -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>
<!-- 测试相关 -->

View File

@ -1,6 +1,14 @@
spring:
application:
name: admin-application
cloud:
sentinel:
transport:
port: 8719
dashboard: localhost:18001
metric:
charset: UTF-8
eager: false
# server
server: