Skip to content

Commit 7ed3cf0

Browse files
http health
1 parent e84bda2 commit 7ed3cf0

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@
107107
<groupId>org.springframework.boot</groupId>
108108
<artifactId>spring-boot-starter-aop</artifactId>
109109
</dependency>
110+
<!--spring boot 监控依赖-->
111+
<dependency>
112+
<groupId>org.springframework.boot</groupId>
113+
<artifactId>spring-boot-starter-actuator</artifactId>
114+
</dependency>
110115
</dependencies>
111116

112117
<build>

src/main/resources/application.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ spring:
7070
mail:
7171
host: smtp.qq.com
7272
username: 407993723@qq.com
73-
password:
73+
password:
7474
# port: 25
7575
# protocol: smtp
7676
default-encoding: utf-8
@@ -81,4 +81,15 @@ spring:
8181
starttls:
8282
enable: true
8383
required: true
84-
84+
info:
85+
author:
86+
realname: zzp
87+
nickname: zhengping.zhu
88+
email: zhu_zhengping@hotmail.com
89+
blog:
90+
endpoints:
91+
shutdown:
92+
enabled: true
93+
management:
94+
context-path: /manage
95+
port: 9090 #-1代表关闭

0 commit comments

Comments
 (0)