Commit a0783fc2 authored by 刘斌's avatar 刘斌

fix: 完善健康检查

parent 7fe073a6
...@@ -24,6 +24,10 @@ ...@@ -24,6 +24,10 @@
<groupId>top.binfast</groupId> <groupId>top.binfast</groupId>
<artifactId>daemon-codegen</artifactId> <artifactId>daemon-codegen</artifactId>
</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>
<artifactId>spring-boot-starter-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>
......
...@@ -29,6 +29,18 @@ spring: ...@@ -29,6 +29,18 @@ spring:
# redisson: # redisson:
# config: classpath:redisson.yml # config: classpath:redisson.yml
--- # Actuator 监控端点的配置项
management:
endpoints:
web:
exposure:
include: health,info,shutdown,logfile
endpoint:
health:
show-details: ALWAYS
logfile:
external-file: ./logs/console.log
# mybaits-plus配置 # mybaits-plus配置
mybatis-plus: mybatis-plus:
# MyBatis Mapper所对应的XML文件位置 # MyBatis Mapper所对应的XML文件位置
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment