Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 649 Bytes

File metadata and controls

27 lines (16 loc) · 649 Bytes

springboot-customize-status-code

java: 8

gradle: 4.1

Question refer to here

How to run the demo

./gradlew bootRun

Scenario

In the DemoController,

  1. if I return non-standard status equal or greater than 200, everything works;

  2. if I return status below less than 200, no one works.

How to reproduce

After you start the demo with ./gradlew bootRun, visit http://localhost:8080/hello in the browser or test it in the commandline with curl -v http://localhost:8080/hello