From 7697c8b0c0db7ea962055f93e22bcc87dfab7915 Mon Sep 17 00:00:00 2001
From: YunaiV <>
Date: Tue, 4 Aug 2020 20:32:32 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20search=20=E6=9C=8D?=
=?UTF-8?q?=E5=8A=A1=E6=89=93=E5=8C=85=E6=97=B6=E7=9A=84=E7=9B=91=E6=8E=A7?=
=?UTF-8?q?=E6=A3=80=E6=9F=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../search-service-app/pom.xml | 24 +++++++++++++++++++
.../src/main/resources/application.yaml | 6 +++++
2 files changed, 30 insertions(+)
diff --git a/search-service-project/search-service-app/pom.xml b/search-service-project/search-service-app/pom.xml
index 547724843..c813f761d 100644
--- a/search-service-project/search-service-app/pom.xml
+++ b/search-service-project/search-service-app/pom.xml
@@ -39,6 +39,12 @@
1.0-SNAPSHOT
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
cn.iocoder.mall
@@ -64,6 +70,12 @@
test
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+
+
org.springframework.boot
@@ -91,4 +103,16 @@
+
+
+ ${project.artifactId}
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+
diff --git a/search-service-project/search-service-app/src/main/resources/application.yaml b/search-service-project/search-service-app/src/main/resources/application.yaml
index b107c5938..8b1f96473 100644
--- a/search-service-project/search-service-app/src/main/resources/application.yaml
+++ b/search-service-project/search-service-app/src/main/resources/application.yaml
@@ -48,6 +48,12 @@ dubbo:
rocketmq:
name-server: 400-infra.server.iocoder.cn:9876
+# Actuator 监控配置项
+management:
+ server.port: 38083 # 独立端口,避免被暴露出去
+ endpoints.web.exposure.include: '*' # 暴露所有监控端点
+server.port: ${management.server.port} # 设置使用 Actuator 的服务器端口,因为 RPC 服务不需要 Web 端口
+
# Mall 配置项
mall:
# 错误码配置项对应 ErrorCodeProperties 配置类