Skip to content

Java Intermediate

Hub › Java › Intermediate

What you'll build

You extend the beginner GET /items endpoint from a fixed list into a full CRUD API backed by a database. Using Spring Data JPA over an in-memory H2 database you add GET /items, GET /items/{id}, and POST /items, with a service layer, bean validation, error handling, and MockMvc + repository tests.

The ladder

  1. 01 Why a database
  2. 02 Add JPA and H2
  3. 03 Entity and repository
  4. 04 Service layer
  5. 05 Controller CRUD
  6. 06 Validation and errors
  7. 07 Tests