- 添加 sentinel
This commit is contained in:
parent
2187ae2662
commit
633c7504a4
7
pom.xml
7
pom.xml
|
@ -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 相关 -->
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
<!-- 测试相关 -->
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue