Little Treasures: The Useful Spring Classes That You Might Not Know
summary
A small demo app (Spring Boot 3.1, Java 17) shows concrete utilities, how they’re used and why they matter: loading hotels.yaml via spring.config.import and binding to records with @ConfigurationProperties; tests that use OutputCaptureExtension and TestPropertyValues to set system properties and capture stdout without manual streams; mapping DTOs with PropertyMapper; caching on-the-fly JPEG thumbnails with ConcurrentReferenceHashMap (works and evicts under memory pressure); using Assert, LinkedCaseInsensitiveMap, MultiValueMap, Resource, FileCopyUtils, LogMessage, ThrowingSupplier and ResolvableType in real code.
AI-written summary · about
chapters (23)
- 0:00Introduction to Spring treasures
- 2:10Demo app overview
- 6:09Testing utilities in Spring Boot
- 9:43Output capture extension
- 10:25Test property values
- 11:28Loading YAML with config
- 13:57Configuration properties
- 16:27Assert utility class
- 18:13Case insensitive map
- 20:42Multi-value map
- 21:26Collection utils
- 22:28Media type utilities
- 23:54Property mapper
- 27:04String and URI utils
- 28:52Jackson tester
- 30:41Resource abstraction
- 34:34Log message utilities
- 36:19Throwing functional interfaces
- 37:46File copy utilities
- 39:12Object utils
- 39:54Concurrent reference hash map
- 40:58Resolvable type
- 43:29Q&A and summary
related talks
47m'Bootiful' Applications with Spring Boot
49mMagical Beans and Mystery
50mSpring's unexpected features
01h 09mBootiful Spring Boot: A DOGumentary
43mKotlin for Fun for Spring Fans
50mThe Bootiful Application
01h 23mSpring Framework: The Ultimate Configurations Battle!
01h 22mModern Java Component Design with Spring Framework 4.2
