liveBook · Manning

Convention over configuration

As explained in Quarkus in Action

Convention over configuration is a software design pattern in which framework conventions provide defaults so applications need to specify only deviations.

Convention over configuration is a design pattern in which framework conventions supply sensible defaults, allowing an application to specify only the behavior it needs to change. This reduces boilerplate and keeps configuration focused on deviations. section 1.2.3 section 1.6.1

Frameworks apply the pattern through opinionated choices about configuration and supported APIs. Quarkus uses it in JVM mode while supporting libraries and standards such as MicroProfile and Jakarta EE; Spring Boot similarly supplies defaults for standalone Java applications. section 1.2.3 section 1.6.1

The pattern provides:

  • Less boilerplate because common framework behavior is configured automatically. section 1.6.1
  • Explicit control only where the application departs from the framework’s defaults. section 1.6.1
  • A practical balance between familiar standards and framework-specific convenience. section 1.2.3

How Quarkus in Action covers it

How deep it goes
Defines defaults and overrides through framework examples but stops short of detailing configuration mechanics or implementation internals.
Examples
Uses Quarkus JVM defaults and Spring Boot standalone applications as concrete examples of convention-driven frameworks.
What it assumes
Assumes familiarity with Java frameworks, libraries, or standards that can supply reusable conventions.
What you can do after
Apply framework defaults and override only the functionality that differs from the conventional behavior.
How it connects
Connects framework defaults with Quarkus, Spring Boot, MicroProfile, Jakarta EE, Java libraries, and API selection.

Also explained in

Compare how 2 books explain convention over configuration →

Related concepts

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