liveBook · Manning

Spring Boot

As explained in Automating API Delivery

Spring Boot is a Java framework for building stand-alone, production-oriented applications with convention-based configuration and embedded infrastructure.

Spring Boot supports stand-alone Java API services whose controllers, routing, request models, and response models can be generated from an OpenAPI definition treated as the source of truth. section 6.2.1

A practical OpenAPI-driven workflow:

  • Run OpenAPI Generator with the Spring generator and configure controller, model, configuration, and base packages. section 6.2.1
  • Inspect the generated Maven project, application properties, OpenAPI file, controllers, models, and configuration classes. section 6.2.1
  • Implement controller methods with typed path variables, response entities, status codes, and generated model objects. section 6.2.1
  • Add centralized exception handling and verify successful and invalid requests with curl and jq. section 6.2.1

Product lookup endpoint

A generated ProductsApi interface can be implemented by returning a Product populated with an identifier, name, description, price, and keywords. A valid UUID request returns JSON with HTTP 200; an invalid UUID returns a structured HTTP 400 error. section 6.2.1

How Automating API Delivery covers it

How deep it goes
Traces generated packages, annotations, controller implementation, exception handling, and curl verification without detailing Spring Boot internals.
Examples
Demonstrates a product-catalog service, generated ProductsApi components, a product lookup response, and structured invalid-UUID errors.
What it assumes
Assumes familiarity with Java and Spring Boot but teaches project generation, package configuration, endpoint implementation, and request verification.
What you can do after
Build it from an OpenAPI definition, implement generated controllers, handle errors centrally, and verify responses with curl.
How it connects
Connects Spring Boot with Java, OpenAPI, OpenAPI Generator, REST controllers, request routing, data models, and exception handling.

Also explained in

Compare how 4 books explain Spring Boot →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Automating API Delivery. The section links point to the parts of the book it draws on.