Spring Security v7 made configuring CSRF protection for Single Page Applications a lot easier. In this blogpost I'll talk about the history and the improvements!
RestTemplate has been considered feature-complete for a while now, but what's the state of it in Spring Boot 4?
Spring Boot 4 updates Micrometer to 1.16, which introduces SMTP-related metrics. This means that with some configuration tweaking, we can obtain these metrics with Spring Boot Actuator.
If you're handling large request or response bodies, streaming them could be useful. Starting with Spring Boot 4, using InputStream and OutputStream is now directly supported within the HTTP interface clients.
Spring Boot 4 improved their HTTP interfaces. One of the newly added features is that you can easily link them to a Spring Security OAuth2 Client.
Customizers have been added to Spring for a while now. Starting with Spring Boot 4, we can also use them to configure Spring Security's HttpSecurity bean!
Together with Spring framework v7 and Spring Boot v4, Spring Modulith v2 was also released. One of its new killer-features is its module-aware database migrations when using Flyway.
Spring Batch not only became modularized, but also simplified its API. API's like JobExplorer and JobOperator now got merged into other API's, simplifying your applications!
Spring's Expression Language can do a lot of things. Starting with Spring Boot 4, it also nicely works with Optional in combination with the safe navigation and the elvis operator!
Spring Boot 4 adds support for JSpecify, which hopefully makes NullPointerExceptions something part of the past.