Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 02f3f2b

Browse files
[fix] Fixed the actuator paths and config
1 parent b93b5a2 commit 02f3f2b

File tree

2 files changed

+43
-34
lines changed

2 files changed

+43
-34
lines changed

‎d03/d03s04-actuator/src/main/resources/application.yml

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,6 @@ logging:
3333
console: '%clr([%date{HH:mm:ss.SSS}]){faint} %clr(%2p) %clr(%-40.40logger{36}){cyan} %m%n%wex'
3434

3535
# actuator config
36-
endpoints:
37-
sensitive: false
38-
actuator:
39-
enabled: true
40-
41-
shutdown:
42-
enabled: true
43-
sensitive: true
44-
45-
info:
46-
enabled: true
47-
path: the-info
48-
49-
metrics:
50-
enabled: true
5136

5237
info:
5338
app:
@@ -61,7 +46,31 @@ management:
6146
endpoint:
6247
health:
6348
show-details: always
49+
enabled: true
50+
51+
shutdown:
52+
enabled: true
53+
54+
beans:
55+
enabled: true
56+
57+
info:
58+
enabled: true
59+
60+
env:
61+
enabled: true
62+
63+
metrics:
64+
enabled: true
65+
66+
mappings:
67+
enabled: true
6468

6569
health:
6670
defaults:
67-
enabled: true
71+
enabled: true
72+
73+
endpoints:
74+
web:
75+
exposure:
76+
include: "*"

‎d03/d03s04-actuator/src/main/resources/spring-boot-actuators-demo.postman_collection.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"item": [
1010
{
11-
"name": "http://localhost:8080/info",
11+
"name": "http://localhost:8080/actuator/info",
1212
"event": [
1313
{
1414
"listen": "test",
@@ -21,7 +21,7 @@
2121
}
2222
],
2323
"request": {
24-
"url": "http://localhost:8080/beans",
24+
"url": "http://localhost:8080/actuator/beans",
2525
"method": "GET",
2626
"header": [
2727
{
@@ -35,7 +35,7 @@
3535
"response": []
3636
},
3737
{
38-
"name": "http://localhost:8080/beans",
38+
"name": "http://localhost:8080/actuator/beans",
3939
"event": [
4040
{
4141
"listen": "test",
@@ -48,7 +48,7 @@
4848
}
4949
],
5050
"request": {
51-
"url": "http://localhost:8080/beans",
51+
"url": "http://localhost:8080/actuator/beans",
5252
"method": "GET",
5353
"header": [
5454
{
@@ -62,7 +62,7 @@
6262
"response": []
6363
},
6464
{
65-
"name": "http://localhost:8080/env",
65+
"name": "http://localhost:8080/actuator/env",
6666
"event": [
6767
{
6868
"listen": "test",
@@ -75,7 +75,7 @@
7575
}
7676
],
7777
"request": {
78-
"url": "http://localhost:8080/env",
78+
"url": "http://localhost:8080/actuator/env",
7979
"method": "GET",
8080
"header": [
8181
{
@@ -89,7 +89,7 @@
8989
"response": []
9090
},
9191
{
92-
"name": "http://localhost:8080/health",
92+
"name": "http://localhost:8080/actuator/health",
9393
"event": [
9494
{
9595
"listen": "test",
@@ -102,7 +102,7 @@
102102
}
103103
],
104104
"request": {
105-
"url": "http://localhost:8080/health",
105+
"url": "http://localhost:8080/actuator/health",
106106
"method": "GET",
107107
"header": [
108108
{
@@ -116,7 +116,7 @@
116116
"response": []
117117
},
118118
{
119-
"name": "http://localhost:8080/metrics",
119+
"name": "http://localhost:8080/actuator/metrics",
120120
"event": [
121121
{
122122
"listen": "test",
@@ -129,7 +129,7 @@
129129
}
130130
],
131131
"request": {
132-
"url": "http://localhost:8080/metrics",
132+
"url": "http://localhost:8080/actuator/metrics",
133133
"method": "GET",
134134
"header": [
135135
{
@@ -143,7 +143,7 @@
143143
"response": []
144144
},
145145
{
146-
"name": "http://localhost:8080/mappings",
146+
"name": "http://localhost:8080/actuator/mappings",
147147
"event": [
148148
{
149149
"listen": "test",
@@ -156,7 +156,7 @@
156156
}
157157
],
158158
"request": {
159-
"url": "http://localhost:8080/mappings",
159+
"url": "http://localhost:8080/actuator/mappings",
160160
"method": "GET",
161161
"header": [
162162
{
@@ -170,7 +170,7 @@
170170
"response": []
171171
},
172172
{
173-
"name": "http://localhost:8080/trace",
173+
"name": "http://localhost:8080/actuator/trace",
174174
"event": [
175175
{
176176
"listen": "test",
@@ -183,7 +183,7 @@
183183
}
184184
],
185185
"request": {
186-
"url": "http://localhost:8080/trace",
186+
"url": "http://localhost:8080/actuator/trace",
187187
"method": "GET",
188188
"header": [
189189
{
@@ -197,7 +197,7 @@
197197
"response": []
198198
},
199199
{
200-
"name": "http://localhost:8080/memory",
200+
"name": "http://localhost:8080/actuator/memory",
201201
"event": [
202202
{
203203
"listen": "test",
@@ -210,7 +210,7 @@
210210
}
211211
],
212212
"request": {
213-
"url": "http://localhost:8080/memory",
213+
"url": "http://localhost:8080/actuator/memory",
214214
"method": "GET",
215215
"header": [
216216
{
@@ -224,7 +224,7 @@
224224
"response": []
225225
},
226226
{
227-
"name": "http://localhost:8080/shutdown",
227+
"name": "http://localhost:8080/actuator/shutdown",
228228
"event": [
229229
{
230230
"listen": "test",
@@ -237,7 +237,7 @@
237237
}
238238
],
239239
"request": {
240-
"url": "http://localhost:8080/shutdown",
240+
"url": "http://localhost:8080/actuator/shutdown",
241241
"method": "POST",
242242
"header": [
243243
{

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /