增加 search 服务打包时的监控检查
							parent
							
								
									b83262af5f
								
							
						
					
					
						commit
						7697c8b0c0
					
				|  | @ -39,6 +39,12 @@ | |||
|             <version>1.0-SNAPSHOT</version> | ||||
|         </dependency> | ||||
| 
 | ||||
|         <!-- Web 相关 --> | ||||
|         <dependency> | ||||
|             <groupId>org.springframework.boot</groupId> | ||||
|             <artifactId>spring-boot-starter-web</artifactId> <!-- 需要开启 Web 容器,因为 Actuator 需要使用到 --> | ||||
|         </dependency> | ||||
| 
 | ||||
|         <!-- MQ 相关 --> | ||||
|         <dependency> | ||||
|             <groupId>cn.iocoder.mall</groupId> | ||||
|  | @ -64,6 +70,12 @@ | |||
|             <scope>test</scope> | ||||
|         </dependency> | ||||
| 
 | ||||
|         <!-- 监控相关 --> | ||||
|         <dependency> | ||||
|             <groupId>org.springframework.boot</groupId> | ||||
|             <artifactId>spring-boot-starter-actuator</artifactId> | ||||
|         </dependency> | ||||
| 
 | ||||
|         <!-- 工具类相关 --> | ||||
|         <dependency> | ||||
|             <groupId>org.springframework.boot</groupId> | ||||
|  | @ -91,4 +103,16 @@ | |||
|         </dependency> | ||||
|     </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> | ||||
|  |  | |||
|  | @ -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 配置类 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 YunaiV
						YunaiV