Null-safe applications with Spring Boot 4
Sébastien Deleuze - Broadcom
As a follow-up to last year null-safety introductory talk, we are going to explore how to turn your existing Spring Boot applications to null-safe ones, by turning “the billion dollar mistake” into a zero cost abstraction allowing to express the potential absence of value thanks to JSpecify annotations.
By making an existing Spring Boot application null-safe step by step, we will explore nullability features of most popular IDEs, how AI assisted development can help us, various examples of Spring APIs taking advantage of explicit nullabilty and how to configure NullAway with Gradle or Maven to check null-safety at build-time.
We will finish by a glimpse of the future with a preview of how Java may get native support for null-restricted type and how JSpecify can help your codebases being ready for such new Java feature.
