添加后端部署多节点,nginx节点检查方法/actuator/health
This commit is contained in:
@@ -110,6 +110,11 @@
|
||||
<artifactId>gson</artifactId>
|
||||
<version>2.9.1</version>
|
||||
</dependency>
|
||||
<!-- 健康检查核心依赖 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
@@ -140,6 +140,13 @@ mybatis-plus:
|
||||
file:
|
||||
upload-dir: /data/file
|
||||
|
||||
#nginx节点健康检查
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: health
|
||||
|
||||
#微信小程序
|
||||
wx:
|
||||
appid: wx4aa34488b965a331
|
||||
|
||||
Reference in New Issue
Block a user