From e0d7731626b25da968b5dc8a7ff0afdbe62fb7e7 Mon Sep 17 00:00:00 2001 From: YunaiV <> Date: Thu, 27 Aug 2020 01:09:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20shop-web-app=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=9B=91=E6=8E=A7=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop-web-app/pom.xml | 6 ++++++ shop-web-app/src/main/resources/application.yml | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/shop-web-app/pom.xml b/shop-web-app/pom.xml index b91be9b76..6778853de 100644 --- a/shop-web-app/pom.xml +++ b/shop-web-app/pom.xml @@ -91,6 +91,12 @@ spring-cloud-starter-alibaba-nacos-discovery + + + org.springframework.boot + spring-boot-starter-actuator + + org.projectlombok diff --git a/shop-web-app/src/main/resources/application.yml b/shop-web-app/src/main/resources/application.yml index f0fed3e03..e888bcc4f 100644 --- a/shop-web-app/src/main/resources/application.yml +++ b/shop-web-app/src/main/resources/application.yml @@ -60,3 +60,8 @@ swagger: description: 提供用户商城购物流程中的 API version: 1.0.0 base-package: cn.iocoder.mall.shopweb.controller + +# Actuator 监控配置项 +management: + server.port: 38088 # 独立端口,避免被暴露出去 + endpoints.web.exposure.include: '*' # 暴露所有监控端点