Browse Source

Fix README.adoc for Spring Boot 2.0.0.RELEASE (#44)

Heo Won Chul 6 years ago
parent
commit
aed03c94fb
1 changed files with 14 additions and 22 deletions
  1. 14
    22
      README.adoc

+ 14
- 22
README.adoc View File

204
 You will see a new set of RESTful end points added to the application. These are management services provided by Spring Boot.
204
 You will see a new set of RESTful end points added to the application. These are management services provided by Spring Boot.
205
 
205
 
206
 ....
206
 ....
207
-2014-06-03 13:23:28.119  ... : Mapped "{[/error],methods=[],params=[],headers=[],consumes...
208
-2014-06-03 13:23:28.119  ... : Mapped "{[/error],methods=[],params=[],headers=[],consumes...
209
-2014-06-03 13:23:28.136  ... : Mapped URL path [/**] onto handler of type [class org.spri...
210
-2014-06-03 13:23:28.136  ... : Mapped URL path [/webjars/**] onto handler of type [class ...
211
-2014-06-03 13:23:28.440  ... : Mapped "{[/info],methods=[GET],params=[],headers=[],consum...
212
-2014-06-03 13:23:28.441  ... : Mapped "{[/autoconfig],methods=[GET],params=[],headers=[],...
213
-2014-06-03 13:23:28.441  ... : Mapped "{[/mappings],methods=[GET],params=[],headers=[],co...
214
-2014-06-03 13:23:28.442  ... : Mapped "{[/trace],methods=[GET],params=[],headers=[],consu...
215
-2014-06-03 13:23:28.442  ... : Mapped "{[/env/{name:.*}],methods=[GET],params=[],headers=...
216
-2014-06-03 13:23:28.442  ... : Mapped "{[/env],methods=[GET],params=[],headers=[],consume...
217
-2014-06-03 13:23:28.443  ... : Mapped "{[/configprops],methods=[GET],params=[],headers=[]...
218
-2014-06-03 13:23:28.443  ... : Mapped "{[/metrics/{name:.*}],methods=[GET],params=[],head...
219
-2014-06-03 13:23:28.443  ... : Mapped "{[/metrics],methods=[GET],params=[],headers=[],con...
220
-2014-06-03 13:23:28.444  ... : Mapped "{[/health],methods=[GET],params=[],headers=[],cons...
221
-2014-06-03 13:23:28.444  ... : Mapped "{[/dump],methods=[GET],params=[],headers=[],consum...
222
-2014-06-03 13:23:28.445  ... : Mapped "{[/beans],methods=[GET],params=[],headers=[],consu...
207
+2018-03-17 15:42:20.088  ... : Mapped "{[/error],produces=[text/html]}" onto public org.s...
208
+2018-03-17 15:42:20.089  ... : Mapped "{[/error]}" onto public org.springframework.http.R...
209
+2018-03-17 15:42:20.121  ... : Mapped URL path [/webjars/**] onto handler of type [class ...
210
+2018-03-17 15:42:20.121  ... : Mapped URL path [/**] onto handler of type [class org.spri...
211
+2018-03-17 15:42:20.157  ... : Mapped URL path [/**/favicon.ico] onto handler of type [cl...
212
+2018-03-17 15:42:20.488  ... : Mapped "{[/actuator/health],methods=[GET],produces=[application/vnd...
213
+2018-03-17 15:42:20.490  ... : Mapped "{[/actuator/info],methods=[GET],produces=[application/vnd.s...
214
+2018-03-17 15:42:20.491  ... : Mapped "{[/actuator],methods=[GET],produces=[application/vnd.spring...
223
 ....
215
 ....
224
 
216
 
225
-They include: errors, http://localhost:8080/env[environment], http://localhost:8080/health[health], http://localhost:8080/beans[beans], http://localhost:8080/info[info], http://localhost:8080/metrics[metrics], http://localhost:8080/trace[trace], http://localhost:8080/configprops[configprops], and http://localhost:8080/dump[dump].
217
+They include: errors, http://localhost:8080/actuator/health[actuator/health], http://localhost:8080/actuator/info[actuator/info], http://localhost:8080/actuator[actuator].
226
 
218
 
227
-NOTE: There is also a `/shutdown` endpoint, but it's only visible by default via JMX. To http://docs.spring.io/spring-boot/docs/{spring_boot_version}/reference/htmlsingle/#production-ready-customizing-endpoints[enable it as an HTTP endpoint], add
228
-`endpoints.shutdown.enabled=true` to your `application.properties` file.
219
+NOTE: There is also a `/actuator/shutdown` endpoint, but it's only visible by default via JMX. To http://docs.spring.io/spring-boot/docs/{spring_boot_version}/reference/htmlsingle/#production-ready-endpoints-enabling-endpoints[enable it as an HTTP endpoint], add
220
+`management.endpoints.shutdown.enabled=true` to your `application.properties` file.
229
 
221
 
230
 It's easy to check the health of the app.
222
 It's easy to check the health of the app.
231
 
223
 
232
 ----
224
 ----
233
-$ curl localhost:8080/health
234
-{"status":"UP","diskSpace":{"status":"UP","total":397635555328,"free":328389529600,"threshold":10485760}}}
225
+$ curl localhost:8080/actuator/health
226
+{"status":"UP"}
235
 ----
227
 ----
236
 
228
 
237
 You can try to invoke shutdown through curl.
229
 You can try to invoke shutdown through curl.
238
 
230
 
239
 ----
231
 ----
240
-$ curl -X POST localhost:8080/shutdown
232
+$ curl -X POST localhost:8080/actuator/shutdown
241
 {"timestamp":1401820343710,"error":"Method Not Allowed","status":405,"message":"Request method 'POST' not supported"}
233
 {"timestamp":1401820343710,"error":"Method Not Allowed","status":405,"message":"Request method 'POST' not supported"}
242
 ----
234
 ----
243
 
235