增加 search 服务打包时的监控检查
This commit is contained in:
parent
b83262af5f
commit
7697c8b0c0
@ -39,6 +39,12 @@
|
|||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- Web 相关 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-web</artifactId> <!-- 需要开启 Web 容器,因为 Actuator 需要使用到 -->
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- MQ 相关 -->
|
<!-- MQ 相关 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>cn.iocoder.mall</groupId>
|
<groupId>cn.iocoder.mall</groupId>
|
||||||
@ -64,6 +70,12 @@
|
|||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- 监控相关 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- 工具类相关 -->
|
<!-- 工具类相关 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
@ -91,4 +103,16 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<!-- 设置构建的 jar 包名 -->
|
||||||
|
<finalName>${project.artifactId}</finalName>
|
||||||
|
<!-- 使用 spring-boot-maven-plugin 插件打包 -->
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
@ -48,6 +48,12 @@ dubbo:
|
|||||||
rocketmq:
|
rocketmq:
|
||||||
name-server: 400-infra.server.iocoder.cn:9876
|
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 配置项
|
||||||
mall:
|
mall:
|
||||||
# 错误码配置项对应 ErrorCodeProperties 配置类
|
# 错误码配置项对应 ErrorCodeProperties 配置类
|
||||||
|
Loading…
Reference in New Issue
Block a user