Articles
SpringUniverse
Short written articles on Spring and Spring Boot. Each one teaches a concept on its own, with the related videos from the SpringUniverse YouTube channel beside it. Later curriculum topics without an article yet follow as coming soon.
Learning map
Topics in learning order. Coming soon items are not links yet; read and in-progress states appear in this browser once you start an article.
- 1How a Java Web App Works: From Browser to Spring and Back
- 2Spring Boot 4 from Zero: Your First App and REST Controller
- 3Spring Boot Starters and the BOM: Who Picks Your Versions
- 4Dependency Injection and the Spring Container
- 5Spring Boot Configuration: application.yml, @ConfigurationProperties, Profiles and a Little SpEL
- 6Spring Bean Lifecycle: @PostConstruct, @PreDestroy, @Lazy and @DependsOn
- 7How Spring Proxies Work: the Self-Call Trap, CGLIB vs JDK, final and private
- 8Spring Circular Dependencies: Why Boot Refuses Them and How to Fix Them
- 9Spring Boot Auto-Configuration: How It Decides, and How to Change, Write, Disable and Test It
- 10REST APIs with Spring Boot 4: CRUD, Useful Errors and API Versioning
- 11Calling Another API with RestClient and HTTP Service Clients
- 12Reading a Database with JdbcClient and Flyway
- T9.1Entities, repositories and derived queries with Hibernate 7 (coming soon)
- T9.2Relationships, N+1, fetch strategies, projections, paging (coming soon)
- T10.1@Transactional explained: boundaries, propagation, isolation, rollback rules, testing (coming soon)
- T11.1Testing pyramid in Spring: JUnit 6, @SpringBootTest, test slices (@WebMvcTest, @DataJpaTest), @MockitoBean, RestTestClient (coming soon)
- T11.2Real databases in tests with Testcontainers 2 and @ServiceConnection (coming soon)
- T12.1AOP: problems it solves, aspects, pointcuts, advice types, and where Spring already uses it (coming soon)
- T13.1Security basics: the filter chain, SecurityFilterChain bean, users, password encoding (coming soon)
- T13.2Authorization: URL rules, method security, roles vs authorities (coming soon)
- T13.3Stateless APIs: JWT resource server and OAuth2 login (coming soon)
- T14.1Production-ready: Actuator endpoints, health, Micrometer metrics, tracing with the OpenTelemetry starter (coming soon)
- T15.1Built-in resilience in Framework 7 (@Retryable, RetryTemplate, @ConcurrencyLimit) plus virtual threads in practice (coming soon)
- T16.1Spring for Apache Kafka 4: producers, @KafkaListener, errors and retries (coming soon)
- T16.2JMS with the new JmsClient, and when to choose a queue vs a log (coming soon)
- T17.1When (not) to split: a service pair with Config Server, discovery (Eureka) and Gateway (coming soon)
- T17.2Fault tolerance between services: circuit breaker, timeouts, tracing across services (coming soon)
- T18.1Executable JARs, container images with buildpacks, GraalVM native images, graceful shutdown (coming soon)
- T19.1Migrating a Boot 3.5 app to Boot 4: modules, Jackson 3, JUnit 6, renamed properties, OpenRewrite (coming soon)
Articles
- How a Java Web App Works: From Browser to Spring and BackWhat happens between typing an address and seeing a JSON answer, written as a short trip through client, HTTP, JSON and a plain Java server, and the one part of that trip Spring automates.
- Spring Boot 4 from Zero: Your First App and REST ControllerHow to generate a Spring Boot 4 project, what each file is for, how @SpringBootApplication finds your classes, and how a small REST controller returns JSON.
- Spring Boot Starters and the BOM: Who Picks Your VersionsWhy a Spring Boot pom.xml needs no version numbers. A starter is a list of dependencies, the BOM is a list of version rules, and together they let you upgrade a whole stack by changing one number.
- Dependency Injection and the Spring ContainerWhy a class should ask for its helpers instead of building them, and what the Spring container does with that request — @Component and @Bean, component scanning, @Configuration and the ApplicationContext.
- Spring Boot Configuration: application.yml, @ConfigurationProperties, Profiles and a Little SpELHow one Spring Boot jar runs with different settings on a laptop, in tests and in production. Properties live outside the code, sources override each other in a fixed order, and profiles switch values and beans.
- Spring Bean Lifecycle: @PostConstruct, @PreDestroy, @Lazy and @DependsOnWhen Spring creates a bean, injects it, runs its setup and cleans it up, and how to put your code at the right moment. Covers @PostConstruct, @PreDestroy, @Lazy, @DependsOn and why cleanup needs a closed container.
- How Spring Proxies Work: the Self-Call Trap, CGLIB vs JDK, final and privateAnnotations such as @Async and @Transactional work through a proxy, a stand-in object Spring puts in front of your bean. Knowing what the proxy can and cannot see explains the self-call trap, final methods, final classes and private methods.
- Spring Circular Dependencies: Why Boot Refuses Them and How to Fix ThemTwo beans that need each other cannot both be created first, so Spring Boot stops at startup. Why the allow-circular-references flag and @Lazy only hide the cycle, and two ways to remove it.
- Spring Boot Auto-Configuration: How It Decides, and How to Change, Write, Disable and Test ItHow Spring Boot builds beans such as the web server from what is on the classpath, why your own bean wins, and how to change one setting, write an auto-configuration for your own library, turn one off and test it with ApplicationContextRunner.
- REST APIs with Spring Boot 4: CRUD, Useful Errors and API VersioningHow a small Spring Boot product API reads, adds, changes and removes data with the right status codes, answers errors with ProblemDetail, and keeps old callers working when the response has to change.
- Calling Another API with RestClient and HTTP Service ClientsHow a Spring Boot app calls another app's API, first with the RestClient builder Spring Boot provides, then with an HTTP service client described by @GetExchange, imported with @ImportHttpServices, and given its base URL by one property.
- Reading a Database with JdbcClient and FlywayHow Flyway creates and fills a products table from one numbered SQL file when the app starts, and how JdbcClient, which Spring Boot builds for you, maps those rows to records: a list with list(), and one product with param() and optional().
Upcoming
9. Spring Data JPA
- Entities, repositories and derived queries with Hibernate 7Coming soon (not yet published)
- Relationships, N+1, fetch strategies, projections, pagingComing soon (not yet published)
10. Transactions
- @Transactional explained: boundaries, propagation, isolation, rollback rules, testingComing soon (not yet published)
11. Testing
- Testing pyramid in Spring: JUnit 6, @SpringBootTest, test slices (@WebMvcTest, @DataJpaTest), @MockitoBean, RestTestClientComing soon (not yet published)
- Real databases in tests with Testcontainers 2 and @ServiceConnectionComing soon (not yet published)
12. AOP and cross-cutting concerns
- AOP: problems it solves, aspects, pointcuts, advice types, and where Spring already uses itComing soon (not yet published)
13. Spring Security 7
- Security basics: the filter chain, SecurityFilterChain bean, users, password encodingComing soon (not yet published)
- Authorization: URL rules, method security, roles vs authoritiesComing soon (not yet published)
- Stateless APIs: JWT resource server and OAuth2 loginComing soon (not yet published)
14. Actuator and observability
- Production-ready: Actuator endpoints, health, Micrometer metrics, tracing with the OpenTelemetry starterComing soon (not yet published)
15. Resilience and concurrency
- Built-in resilience in Framework 7 (@Retryable, RetryTemplate, @ConcurrencyLimit) plus virtual threads in practiceComing soon (not yet published)
16. Messaging
- Spring for Apache Kafka 4: producers, @KafkaListener, errors and retriesComing soon (not yet published)
- JMS with the new JmsClient, and when to choose a queue vs a logComing soon (not yet published)
17. Microservices with Spring Cloud
- When (not) to split: a service pair with Config Server, discovery (Eureka) and GatewayComing soon (not yet published)
- Fault tolerance between services: circuit breaker, timeouts, tracing across servicesComing soon (not yet published)
18. Packaging and deployment
- Executable JARs, container images with buildpacks, GraalVM native images, graceful shutdownComing soon (not yet published)
19. Upgrading to Boot 4 / Framework 7
- Migrating a Boot 3.5 app to Boot 4: modules, Jackson 3, JUnit 6, renamed properties, OpenRewriteComing soon (not yet published)
Topic map
The Spring annotations these 12 articles use most, and where each one comes up along the learning path. Columns follow the article numbers above; a darker cell means more mentions. Select a term to search for it.
Weekly reviews
- Spring Boot 4.2 RC2, HTTP QUERY, RestTemplate Deprecated | W45This week we cover the second Spring release candidate wave, the Framework seven point one headlines, Project Detroit, and the JDK twenty seven garbage collector changes.
- Java Trust Store Alert, Spring Boot 4.2 RC1, JDK 28 AOT Code | W44If your Java app talks to anything over HTTPS, it may still trust certificates that someone else can forge. That's the first thing to check this week. The keys of eight certificates from one authority, eMudhra, were compromised, and many Java runtimes still trust them.













