- 添加 sentinel
parent
2187ae2662
commit
633c7504a4
7
pom.xml
7
pom.xml
|
@ -46,6 +46,7 @@
|
||||||
<xxl-job.version>2.0.1</xxl-job.version>
|
<xxl-job.version>2.0.1</xxl-job.version>
|
||||||
<guava.version>27.0.1-jre</guava.version>
|
<guava.version>27.0.1-jre</guava.version>
|
||||||
<rocketmq-spring-boot-starter.version>2.0.1</rocketmq-spring-boot-starter.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>
|
<maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
|
||||||
<org.projectlombok.version>1.16.14</org.projectlombok.version>
|
<org.projectlombok.version>1.16.14</org.projectlombok.version>
|
||||||
|
@ -216,6 +217,12 @@
|
||||||
<artifactId>spring-boot-admin-starter-client</artifactId>
|
<artifactId>spring-boot-admin-starter-client</artifactId>
|
||||||
<version>${spring-boot-admin-starter-client.version}</version>
|
<version>${spring-boot-admin-starter-client.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.cloud</groupId>
|
||||||
|
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
|
||||||
|
<version>${sentinel.version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<!-- Test 相关 -->
|
<!-- Test 相关 -->
|
||||||
|
|
||||||
|
|
|
@ -60,9 +60,10 @@
|
||||||
<groupId>de.codecentric</groupId>
|
<groupId>de.codecentric</groupId>
|
||||||
<artifactId>spring-boot-admin-starter-client</artifactId>
|
<artifactId>spring-boot-admin-starter-client</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<!-- sentinel -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- 测试相关 -->
|
<!-- 测试相关 -->
|
||||||
|
|
|
@ -1,6 +1,14 @@
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
name: admin-application
|
name: admin-application
|
||||||
|
cloud:
|
||||||
|
sentinel:
|
||||||
|
transport:
|
||||||
|
port: 8719
|
||||||
|
dashboard: localhost:18001
|
||||||
|
metric:
|
||||||
|
charset: UTF-8
|
||||||
|
eager: false
|
||||||
|
|
||||||
# server
|
# server
|
||||||
server:
|
server:
|
||||||
|
|
Loading…
Reference in New Issue