From 19cffe1c7c4cbf7ae9c63418cb5afb87208e60f4 Mon Sep 17 00:00:00 2001 From: caolin <1149034574@qq.com> Date: Sun, 30 Jun 2024 17:06:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 5 +++++ src/main/resources/application-dev.yml | 16 ++++++++-------- src/main/resources/application.yml | 8 +++++++- 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index e167392..456a02b 100644 --- a/pom.xml +++ b/pom.xml @@ -35,6 +35,11 @@ org.springframework.boot spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-actuator + org.springframework.boot diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index fe786b7..439d569 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -1,16 +1,16 @@ spring: # redis 配置 redis: -# host: 127.0.0.1 -# port: 6379 -# database: 8 -# timeout: 5000 -# auth: caolin123 - host: 118.31.23.45 - port: 6973 + host: 127.0.0.1 + port: 6379 database: 8 timeout: 5000 - password: c12&%3s7l= + auth: caolin123 +# host: 118.31.23.45 +# port: 6973 +# database: 8 +# timeout: 5000 +# password: c12&%3s7l= # 数据库 配置 datasource: diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 951669c..8dc1ffc 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -2,12 +2,18 @@ server: port: 8888 servlet: context-path: '/driver-api' +# 程序状态监控 +management: + endpoints: + web: + exposure: + include: "*" spring: application: name: '@artifactId@' profiles: - active: prod + active: dev #mybatis mybatis-plus: mapper-locations: classpath*:/mapper/**Mapper.xml