Scrivio Interview library
ScenarioIntermediate6 min read · updated 12 November 2026

Your services use Spring AI 0.8 milestone code written in 2024 and you want to move to Spring AI 1.x with Spring Boot 3.5. What kinds of breaking changes do you expect and how do you plan the migration?

Expect three kinds of change. Build changes: starter and artifact names were renamed at 1.0 (for example spring-ai-openai-spring-boot-starter became spring-ai-starter-model-openai), so we align everything through the spring-ai-bom and drop the milestone repositories. API changes: the old low-level ChatClient became ChatModel and a new fluent ChatClient arrived, advisors and chat memory were redesigned, function calling moved to @Tool and ToolCallback, and some properties were renamed. Behaviour changes that compile fine, which is why we migrate on a branch, run evaluation and contract tests, upgrade one service first, and roll out with shared starters and a migration guide.

Why this question is asked

Teams that adopted Spring AI early wrote code against milestone releases, which are previews with no compatibility promise. Between 0.8 in early 2024 and the 1.0 general availability release in 2025, almost every central API was renamed or redesigned. Interviewers ask this question to see whether we can plan a migration across a fast-moving library without breaking production behaviour that no compiler checks. In this answer, we will look at what changed in the build, in the APIs and in behaviour, then plan the migration from branch to rollout.

1Why a Milestone-to-GA Migration Is Bigger Than Usual

A milestone release is published so people can try an API before it is final. The Spring AI team used the milestone period to redesign the API several times based on feedback, which is exactly what milestones are for, but it means code from 0.8 is several breaking changes away from 1.x. Unlike a minor upgrade, we should expect most files that touch Spring AI to change.

Spring AI 1.0 targets Spring Boot 3.4 and 3.5, and later versions move with Spring Boot; check the compatibility table for the exact Spring AI version you pick, since the Boot 4 line pairs with a newer Spring AI major version.

2Build Changes: Starters, the BOM and Repositories

The starters were renamed at 1.0 to a consistent scheme by type: model starters, vector store starters, chat memory starters, and so on. We replace each old artifact with its new name and import the BOM, which pins every Spring AI module to the same version so we do not mix releases.

XML
<!-- before (0.8 milestone) -->
<repositories>
<repository><id>spring-milestones</id><url>https://repo.spring.io/milestone</url></repository>
</repositories>
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-openai-spring-boot-starter</artifactId>
<version>0.8.1</version>
</dependency>
<!-- after (1.x GA, from Maven Central) -->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-bom</artifactId>
<version>1.0.0</version> <!-- pin the exact 1.x version you have tested -->
<type>pom</type><scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-starter-model-openai</artifactId> <!-- no version: comes from the BOM -->
</dependency>

Notice that the milestone repository disappears. GA releases are on Maven Central, and keeping the milestone repository around invites someone to pull a preview version by accident. We pin the BOM to an exact version and upgrade it deliberately.

3API Changes: What Was Renamed or Redesigned

The largest change is at the centre. In 0.8, ChatClient was the low-level interface each provider implemented, with call(Prompt). In the 1.0 milestones it was renamed ChatModel, and the name ChatClient was reused for a new fluent API built on top of it, with prompt().user(...).call().content(). So old code that injected ChatClient and called call(prompt) must either inject ChatModel or move to the fluent API, and the same name now means something else, which makes search and replace dangerous.

Java
// 0.8: ChatClient was the provider interface
@Autowired ChatClient chatClient; // OpenAiChatClient
String text = chatClient.call(new Prompt("Summarize: " + doc))
.getResult().getOutput().getContent();
// 1.x: ChatModel is the provider interface, ChatClient is the fluent API
ChatClient chatClient = ChatClient.builder(chatModel).build();
String text = chatClient.prompt().user("Summarize: " + doc).call().content();
Typical changes from 0.8 to 1.x
Area0.8 milestone1.x
Provider interfaceChatClient (OpenAiChatClient)ChatModel (OpenAiChatModel)
Fluent APInoneChatClient.prompt()...call()
Startersspring-ai-openai-spring-boot-starterspring-ai-starter-model-openai
Functions and toolsfunction beans, FunctionCallback@Tool methods, ToolCallback
Advisors and memoryearly or absentCallAdvisor, ChatMemory, repositories
Versionsmilestone repositoryMaven Central, spring-ai-bom

Around it, other parts were redesigned. The advisor interfaces changed several times and settled as CallAdvisor and StreamAdvisor working on ChatClientRequest and ChatClientResponse. Chat memory was reorganised into ChatMemory and ChatMemoryRepository, with MessageWindowChatMemory and new memory advisor builders. Function calling, configured in 0.8 through function beans and FunctionCallback, moved to tool calling with @Tool methods and ToolCallback. Some getters changed, for example the message text accessor, and some configuration properties were renamed. The upgrade notes in the reference documentation list these per milestone, and we go through them in order rather than guessing.

4Behaviour Changes the Compiler Will Not Catch

After the code compiles, the risky part begins. Default options may have changed, such as default model names, temperature or max tokens. The format instructions that structured output adds to prompts were reworked, so entity() may parse differently. Tool calling now runs through a different mechanism, which can change when and how often the model calls our tools. Memory advisors may add history to the prompt differently. Each of these changes what the model sees, and so what it answers, with no compile error and no exception.

So we compare behaviour, not just code. We set model and options explicitly in configuration, so defaults cannot move under us, and we run the same tests on the old and new versions.

5The Migration Plan

We migrate on a branch, one service first, ideally a small one with good tests. Step one is the build: BOM, renamed starters, no milestone repository, exact versions. Step two is compilation: work through the upgrade notes and fix each break. Step three is behaviour: run the evaluation test set, real inputs with expected outputs or graded rubrics, against both the old and new branch, plus contract tests for the things other code depends on: every structured output type parses, every tool is called with valid arguments, retrieval returns the expected documents for known queries. Step four is a staged rollout of that service with metrics compared against the previous version.

Once the first service is done, the lessons go into two things for everyone else: an updated shared starter that encapsulates the new APIs and the company's defaults, and a migration guide with the exact renames, the pitfalls found, and the tests to run. The remaining services then migrate faster and more consistently.

Step throughMigrating the services
  1. Branch the pilot service
  2. Switch to BOM and renamed startersremove milestone repository
  3. Fix compilation with the upgrade notes
  4. Evaluation and contract tests match the old version?structured output, tools, retrieval
    YesStage the rolloutNoAdjust prompts or options
  5. Update the shared starter and guide
  6. Migrate the other servicesone by one with the same tests

6 steps in order. Play them, or step through them one at a time.

6Follow-up questions

What tests catch behaviour changes in prompts?

Tests that look at outputs, not code. An evaluation set of real inputs with expected answers or a grading rubric, run on both versions and compared by score. Snapshot tests of the rendered prompt, which show when the framework adds or changes text such as format instructions or memory. Contract tests that every entity type still parses and validates, and that tools are called with the expected arguments for known inputs. Retrieval tests with known queries and expected documents. Together they catch most changes that compile but behave differently.

Can we upgrade straight from 0.8 to the latest 1.x?

Yes, but read the upgrade notes for each milestone in between, because each lists its own renames. Jumping directly is fine for the build; the notes are what tell you what each compile error means.

Should every service migrate at once?

No. A pilot service finds the problems once, the shared starter and guide carry the fixes, and the others follow with less risk.

7Conclusion

In this answer, we saw that moving from Spring AI 0.8 milestones to 1.x brings renamed starters aligned through the spring-ai-bom, a redesigned API where the old ChatClient became ChatModel and a new fluent ChatClient appeared, new advisor, memory and tool calling interfaces, and renamed properties. Because behaviour can change without compile errors, we migrate on a branch, run evaluation and contract tests against old and new, remove milestone repositories and pin versions, upgrade one service first, and roll out with a shared starter and a migration guide.

What to say in the interviewAbout 80 seconds aloud

Open with

I would expect three kinds of change. In the build, starter names changed at 1.0, for example spring-ai-openai-spring-boot-starter became spring-ai-starter-model-openai, so I would import the spring-ai-bom, use the new starters, remove the milestone repository since GA is on Maven Central, and pin an exact version.

Then, if they want more

In the API, almost everything central moved: the old ChatClient interface became ChatModel, and ChatClient is now the fluent prompt().user().call() API, so search and replace is risky.

Advisors were redesigned into CallAdvisor and StreamAdvisor, chat memory into ChatMemory with repositories, function calling moved to @Tool and ToolCallback, and some properties and getters were renamed; I would follow the upgrade notes milestone by milestone.

The third kind is behaviour that compiles fine: default options, structured output format instructions, tool calling and memory can all change what the model sees. So I would migrate one pilot service on a branch, set model options explicitly, and run our evaluation set and contract tests for structured output, tools and retrieval against both versions before a staged rollout.

Then I would fold the lessons into the shared starter and a migration guide and move the other services one by one.

About this answer

Last updated
12 November 2026
Versions it names
Spring Boot 3.4
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Official documentation
Spring AI reference
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Your services use Spring AI 0.8 milestone code written in 2024 and you want to move to...": https://scrivio-interview-library.netlify.app/spring-boot/spring-ai/1630eeebdd/