Skip to content

GH-1343: Add documentation for console applications - #5155

Open
ranjitm2001 wants to merge 1 commit into
spring-projects:mainfrom
ranjitm2001:GH-1343
Open

ranjitm2001 wants to merge 1 commit into
spring-projects:mainfrom
ranjitm2001:GH-1343

Conversation

@ranjitm2001

Copy link
Copy Markdown

Summary

This PR adds documentation showing how to create console applications with Spring AI without starting a web server.

Motivation

As noted in #1343, many users want to use Spring AI in non-web contexts such as:

  • Command-line tools and scripts
  • Batch processing applications
  • Background workers
  • Interactive console chatbots

However, there was no documentation showing how to disable the web server when using Spring AI.

Changes

New Files

  • guides/console-application.adoc - New guide with:
    • Configuration to disable web server (spring.main.web-application-type=none)
    • Example interactive console chatbot using CommandLineRunner
    • Example batch processing application
    • Dependencies and running instructions

Modified Files

  • nav.adoc - Added navigation entry for the new guide

Preview

The guide covers:

  1. Configuration - Both application.properties and application.yaml examples
  2. Interactive Chatbot - Complete example with user input loop
  3. Batch Processing - Example for processing documents without user interaction
  4. Dependencies - Clarifies that web starter is not needed
  5. Running - Shows both Maven and JAR execution

Closes #1343

This commit adds a new guide showing how to create console applications
with Spring AI without starting a web server.

The guide includes:
- Configuration to disable web server (spring.main.web-application-type=none)
- Example interactive console chatbot using CommandLineRunner
- Example batch processing application
- Dependencies and running instructions

Closes spring-projectsgh-1343

Signed-off-by: Ranjith Muniyappa <[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

2 participants