Skip to content

Add guide for building a console application - #6407

Open
imgusguo wants to merge 3 commits into
spring-projects:mainfrom
imgusguo:docs/console-application-guide
Open

imgusguo wants to merge 3 commits into
spring-projects:mainfrom
imgusguo:docs/console-application-guide

Conversation

@imgusguo

@imgusguo imgusguo commented Jun 12, 2026 •

Copy link
Copy Markdown

This guide walks first-time users through building a simple interactive command-line application with Spring AI. It covers the full path from start.spring.io setup to wiring ChatClient.Builder into a CommandLineRunner and running a read-eval-print loop against a chat model.

The guide is registered in the docs navigation under Tutorials.

What's included

  • Project setup with spring-ai-starter-model-openai as the example provider
  • API key configuration via environment variable placeholder
  • Disabling the embedded web server with spring.main.web-application-type=none
  • Full Java example using ChatClient.Builder injection
  • Run instructions and a sample interactive session
  • Next-steps xrefs to chat memory, structured output, and tools

Closes #1343

@imgusguo

imgusguo commented Jul 8, 2026

Copy link
Copy Markdown
Author

Hi team! This PR has been open for 20 days with the waiting-for-triage label. Is there anything I can do to help move it forward? Happy to address any feedback. Thanks!

@sdeleuze

sdeleuze commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Hey, I understand the frustration, but we have a limited bandwidth and process PRs by order of priority. We will discuss this one in our next meeting and let you know if we merge or decline it.


* *Project*: Maven
* *Language*: Java
* *Spring Boot*: the latest stable 3.x release

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should avoid being too specific with versions in docs, as this can evolve

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! Removed the version-specific reference. Updated to 'the latest stable release'.

@imgusguo

imgusguo commented Sep 1, 2026

Copy link
Copy Markdown
Author

Hi @sdeleuze, just a gentle follow-up on the merge-or-decline decision you mentioned. I checked the linked issue and the current main branch: #1343 is still open, and I do not see an equivalent console application guide merged. I also noticed #5155 is another open attempt, so I am happy to follow whichever direction the maintainers prefer. The requested version-specific wording change in this PR has been addressed, and the PR remains mergeable. When convenient, could you let me know whether you would like any further changes or would prefer that I close it? Thanks for your time.

@imgusguo
imgusguo force-pushed the docs/console-application-guide branch from 9844dd6 to 627fe82 Compare September 2, 2026 13:16
@imgusguo

imgusguo commented Nov 1, 2026

Copy link
Copy Markdown
Author

Hi @sdeleuze — following up on your July 8 note about the team's merge-or-decline decision for this guide.

I've addressed @ericbottard's feedback on version-specific wording in 627fe82. The PR remains conflict-free, and the DCO check passes.

Could you let me know whether the team would like to proceed with this guide? If it isn't needed, or you'd prefer a different approach for #1343, I'm happy to close this PR and leave room for that approach. If you'd like further changes, such as a navigation adjustment, I'm happy to make them.

I understand the team has limited bandwidth, so I'll leave this with you after this follow-up.

Thanks for your time.

Move the console application guide into Tutorials to follow the
upstream documentation layout and update its related-page links.

Signed-off-by: angus-guo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add documentation on how to create a console application using spring-ai

4 participants