Hand-made Spring Boot Starter
summary
Live code builds a real signature-starter library plus a sample service (two-module project), using Spring Initializr, auto-configuration via spring.factories, component scanning, and @ConfigurationProperties binding. It sets defaults (username, retention = 5m), accepts overrides from application.properties, env vars and CLI, and supports disabling with @ConditionalOnProperty. Validation via Hibernate Validator and spring-boot-configuration-processor rejects bad values; integration tests run with spring-boot-test and the example endpoint returns generated signatures — everything compiles and the demos work.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 2:41What is a Spring Boot starter
- 6:24First starter module
- 10:30Auto-configuration and descriptor
- 13:55Testing the starter
- 16:28Properties configuration
- 25:29Disabling via properties
- 25:49Type safety and encapsulation
- 30:28Supporting multiple configs
- 35:15Property descriptions
- 42:29Validating properties
- 48:11Testing the starter
- 53:37Summary and demo
- 55:50Pros and cons of starters
- 56:31Q&A








