Scrivio Interview library

Spring Framework 6 and 7

19 questions in 9 subtopics.

Java 17 baseline and Jakarta EE

ConceptFoundations6 min read
What changed for application code when Spring Framework 6 moved to a Java 17 baseline and Jakarta EE 9+?
ScenarioIntermediate7 min read
You must keep one Spring Boot 2.7 service running on a vendor library that only ships javax.servlet types, while the rest of the platform moves to Boot 3. What are your options?
LeadershipPrincipal7 min read
Spring has survived Java EE, microframeworks and many competitors. What do you see as the reasons it stayed the default for Java backends, and how should that affect a long-term framework bet now?

AOT processing

InternalsIntermediate7 min read
What does Spring AOT processing do at build time, and what restrictions does it impose on an application?
DesignAdvanced6 min read
Teams ask whether to compile all services as GraalVM native images now that Spring supports AOT. How would you decide per service?

Observability support

ConceptIntermediate6 min read
What is the Micrometer Observation API and how does Spring Framework 6 use it for metrics and tracing?
LeadershipAdvanced6 min read
You are standardising observability across 60 Spring services, some on Sleuth and some on Micrometer Tracing. What standard and migration plan would you set?

HTTP interface clients

CodingFoundations5 min read
Write a Spring HTTP interface client for GET /users/{id} returning User, and explain how it is turned into a working bean.
DesignIntermediate6 min read
Your company has hand-written RestTemplate wrappers for 30 internal APIs. Would you migrate them to HTTP interface clients, and how would you share them between producer and consumer teams?

API versioning

ConceptIntermediate6 min read
Spring Framework 7 adds first-class API versioning to Spring MVC and WebFlux. Describe how a version is resolved and mapped to a handler, and what you would check in the release notes before relying on it.
DesignAdvanced5 min read
Your API platform versions REST APIs through URL paths, headers and custom media types depending on the team. Would you adopt Spring 7 API versioning as the standard, and how?

Null safety with JSpecify

ConceptIntermediate5 min read
Spring Framework 7 moves its null-safety annotations to JSpecify. What does this give Java and Kotlin users, and what should a team do in its own code?
LeadershipPrincipal5 min read
Spring Framework 7 adopts JSpecify null annotations across its APIs. How would you decide whether your organisation adopts null-checking tools across all Java code, and what is the long-term value?

Built-in resilience features

CodingIntermediate6 min read
Spring Framework 7 includes resilience features in the core framework. Show how you would add retries to a method calling a flaky service, and say what you would verify in the release notes.
DesignAdvanced6 min read
Your services use a mix of Spring Retry, Resilience4j and hand-written loops. Framework 7 now offers built-in retry and concurrency limits. What standard would you set?

Upgrade path

ScenarioIntermediate6 min read
Plan the upgrade of one service from Spring Framework 5.3 to 6.2. What steps would you take and what typically breaks?
LeadershipPrincipal5 min read
Spring Framework has moved from XML to annotations, Java config, Boot, Jakarta and now AOT and JSpecify. As the person setting technical strategy, how do you decide how closely to follow Spring's major lines, and what is the cost of falling behind?

Spring 5 features

ConceptFoundations5 min read
What were the main features introduced in Spring Framework 5, and which of them are still central in Spring Framework 6 and 7?
ScenarioIntermediate6 min read
Your company still has 30 services on Spring Framework 5.3 and Spring Boot 2.7, which are past open-source support. Explain the risk and plan how you get them current.