Spring Framework 6 and 7
19 questions in 9 subtopics.
Java 17 baseline and Jakarta EE
What changed for application code when Spring Framework 6 moved to a Java 17 baseline and Jakarta EE 9+?You must keep one Spring Boot 2.7 service running on a vendor library that only shipsjavax.servlet types, while the rest of the platform moves to Boot 3. What are your options?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
What does Spring AOT processing do at build time, and what restrictions does it impose on an application?Teams ask whether to compile all services as GraalVM native images now that Spring supports AOT. How would you decide per service?Observability support
What is the Micrometer Observation API and how does Spring Framework 6 use it for metrics and tracing?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
Write a Spring HTTP interface client for GET /users/{id} returning User, and explain how it is turned into a working bean.Your company has hand-writtenRestTemplate 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
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.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
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?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
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.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
Plan the upgrade of one service from Spring Framework 5.3 to 6.2. What steps would you take and what typically breaks?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
What were the main features introduced in Spring Framework 5, and which of them are still central in Spring Framework 6 and 7?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.No question matches these choices.