diff --git a/pom.xml b/pom.xml index 26f7d3c..9a91bd7 100644 --- a/pom.xml +++ b/pom.xml @@ -67,6 +67,7 @@ mysql-connector-java 8.0.28 + com.alibaba druid @@ -123,6 +124,11 @@ 2.15.4 + + org.springframework.boot + spring-boot-starter-actuator + + diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index e21eff8..a29f410 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -41,4 +41,11 @@ sa-token: # token 风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik) token-style: uuid # 是否输出操作日志 - is-log: true \ No newline at end of file + is-log: true + +# 健康检查配置 +management: + endpoints: + web: + exposure: + include: health,info # 或 "*" \ No newline at end of file