Spring / Spring AI interview questions
What are the Spring AI Spring Initializr options and how do you bootstrap a project?
The fastest way to start a Spring AI project is through start.spring.io. The Spring Initializr now includes Spring AI dependencies as first-class options in the AI category. You pick the AI starters you need alongside your other Spring Boot starters, and the generator creates a ready-to-run project with correct BOMs, repository declarations, and starter wiring.
Available AI starters in Spring Initializr include: OpenAI, Azure OpenAI, Ollama, Anthropic Claude, Mistral AI, Amazon Bedrock, Google Vertex AI Gemini, as well as vector store starters for PgVector, Redis, Chroma, and others.
If you prefer the Spring CLI:
spring boot new --dependencies spring-ai-openai,web,actuator my-ai-appIf you bootstrap manually (adding dependencies by hand), two things are commonly missed:
- Import the
spring-ai-bomindependencyManagementso you do not have to manage individual module versions. - Add the Spring Milestone repository because Spring AI releases are not yet published to Maven Central as GA artifacts for some versions.
<repositories>
<repository>
<id>spring-milestones</id>
<url>https://repo.spring.io/milestone</url>
</repository>
</repositories>
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
