Scrivio Interview library

Spring Boot versions and migration

18 questions in 6 subtopics.

Boot 2 to 3 migration

ConceptFoundations7 min read
List the main changes you must handle when upgrading a service from Spring Boot 2.7 to 3.x.
ScenarioIntermediate8 min read
Plan the upgrade of one large service from Boot 2.5 to 3.3. In which order would you do the steps?
LeadershipAdvanced6 min read
You lead a Boot 2 to 3 migration for 150 services. How do you organise it?
LeadershipPrincipal7 min read
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

CodingFoundations5 min read
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?
DebuggingIntermediate7 min read
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?
LeadershipPrincipal6 min read
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

ScenarioIntermediate6 min read
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?
DesignAdvanced6 min read
How would you prepare 100 services on Boot 3.x for a later move to Boot 4 without starting the migration yet?
LeadershipPrincipal6 min read
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

CodingFoundations6 min read
What is spring-boot-properties-migrator and how do you use it during an upgrade?
ScenarioIntermediate6 min read
Properties for your services come from application.yml, Kubernetes ConfigMaps and a config server. How do you make sure renamed properties are found during an upgrade?

Deprecation handling

ConceptFoundations5 min read
How should you deal with deprecation warnings in Spring Boot before an upgrade?
DesignIntermediate6 min read
How would you keep deprecation warnings at zero across a large codebase without blocking developers?
DesignAdvanced6 min read
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

ConceptFoundations6 min read
Why should you avoid overriding dependency versions that the Spring Boot BOM manages?
LeadershipAdvanced5 min read
Your services fall behind Boot releases by two to three years. How would you keep 200 services current?
LeadershipPrincipal5 min read
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?