From 633c7504a47ef7375673a224bf63df15559c4e96 Mon Sep 17 00:00:00 2001 From: sin <2943460818@qq.com> Date: Wed, 15 May 2019 16:44:13 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E6=B7=BB=E5=8A=A0=20sentinel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 7 +++++++ system/system-application/pom.xml | 5 +++-- .../src/main/resources/application.yaml | 8 ++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 373f2a96b..21447e170 100644 --- a/pom.xml +++ b/pom.xml @@ -46,6 +46,7 @@ 2.0.1 27.0.1-jre 2.0.1 + 0.9.0.RELEASE 3.8.0 1.16.14 @@ -216,6 +217,12 @@ spring-boot-admin-starter-client ${spring-boot-admin-starter-client.version} + + org.springframework.cloud + spring-cloud-starter-alibaba-sentinel + ${sentinel.version} + + diff --git a/system/system-application/pom.xml b/system/system-application/pom.xml index 84f761223..e4add584c 100644 --- a/system/system-application/pom.xml +++ b/system/system-application/pom.xml @@ -60,9 +60,10 @@ de.codecentric spring-boot-admin-starter-client + - org.springframework.boot - spring-boot-starter-actuator + org.springframework.cloud + spring-cloud-starter-alibaba-sentinel diff --git a/system/system-application/src/main/resources/application.yaml b/system/system-application/src/main/resources/application.yaml index 160cae4a2..6f89a4cad 100644 --- a/system/system-application/src/main/resources/application.yaml +++ b/system/system-application/src/main/resources/application.yaml @@ -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: