Your First Web Server
Intermediate
About Spring Boot →
Endpoints, path variables, JSON and status codes: build a real Spring Boot server and watch curl requests hit it. 8 lessons that build on Intro to Java.
0 / 8 lessons complete
Start Lesson 1
Open the Java sandbox ↗
1
The Smallest Server
Start a real web server with three lines of your own code.
2
Hello, Endpoint
Answer your first web request.
3
A Variable in the Path
Put a placeholder in the address and greet anyone by name.
4
Query Parameters
Read values after the ? in a web address.
5
Returning JSON
Return an object and watch it become JSON automatically.
6
A JSON Menu
Return a whole list of objects as a JSON array.
7
Taking Orders: POST
Receive data from the caller instead of only sending it.
8
Not Found: Status Codes
Answer 200 OK when you can, and 404 Not Found when you can't.