~/talk

Hand-made Spring Boot Starter

Talkat Java Z-Day 2021 · 2021-04-08..04-09· [java]
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 2:41What is a Spring Boot starter
  3. 6:24First starter module
  4. 10:30Auto-configuration and descriptor
  5. 13:55Testing the starter
  6. 16:28Properties configuration
  7. 25:29Disabling via properties
  8. 25:49Type safety and encapsulation
  9. 30:28Supporting multiple configs
  10. 35:15Property descriptions
  11. 42:29Validating properties
  12. 48:11Testing the starter
  13. 53:37Summary and demo
  14. 55:50Pros and cons of starters
  15. 56:31Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.