Spring Boot versions and migration
18 questions in 6 subtopics.
Boot 2 to 3 migration
List the main changes you must handle when upgrading a service from Spring Boot 2.7 to 3.x.Plan the upgrade of one large service from Boot 2.5 to 3.3. In which order would you do the steps?You lead a Boot 2 to 3 migration for 150 services. How do you organise it?Looking at the Boot 2 to 3 migration across the industry, what would you do differently for the next major migration in your organisation?Javax to jakarta
Which of these imports change in a Boot 3 application:javax.servlet.http.HttpServletRequest, javax.persistence.Entity, javax.sql.DataSource, javax.validation.constraints.NotNull, javax.annotation.PostConstruct?After moving to Boot 3, entities compile but Hibernate ignores them and a filter class is never invoked. The project depends on an old internal library. What do you check?The javax to jakarta change affected the whole Java ecosystem. What does it teach about dependency on standards bodies and vendors, and how would you protect your organisation from similar changes?Boot 3 to 4 migration
Plan the upgrade of a service from Boot 3.5 to Boot 4.0. What would you prepare and what areas would you test closely?How would you prepare 100 services on Boot 3.x for a later move to Boot 4 without starting the migration yet?Each Spring major release has required large migrations: Jakarta in Boot 3 and modularisation and Jackson 3 in Boot 4. How do you decide whether to keep betting on Spring or move to another framework?Properties migrator
What is spring-boot-properties-migrator and how do you use it during an upgrade?Properties for your services come fromapplication.yml, Kubernetes ConfigMaps and a config server. How do you make sure renamed properties are found during an upgrade?Deprecation handling
How should you deal with deprecation warnings in Spring Boot before an upgrade?How would you keep deprecation warnings at zero across a large codebase without blocking developers?How would you build tooling to tell each team which deprecated Spring APIs and properties they use before a fleet-wide upgrade?Keeping dependencies current
Why should you avoid overriding dependency versions that the Spring Boot BOM manages?Your services fall behind Boot releases by two to three years. How would you keep 200 services current?What is the real cost of staying on an old Spring Boot or Framework line for years, and how would you explain it to non-technical leadership?No question matches these choices.