Tag: springboot
All the articles with the tag "springboot".
-
Streaming LLM responses in Spring AI for a better user experience
LLMs generate text token by token. Streaming lets your users see that text as it arrives instead of staring at a loading spinner. This post shows how to wire Spring AI's stream() to a Server-Sent Events endpoint.
-
Understanding Spring AI's ChatClient — the heart of every AI call
ChatClient is the central abstraction in Spring AI. This post covers the builder API, default system prompts, per-call options, advisors, and the difference between call() and stream() — everything you need to use it effectively.
-
Setting up Spring AI in a Spring Boot project — step by step
Module 2 starts with code. This post walks through adding Spring AI to a Spring Boot project, configuring OpenAI and Ollama, and making your first real LLM API call from Java.
-
Async context propagation improvements in Spring Boot 4.1
Spring Boot 4.1 improves how Micrometer observation context, security context, and MDC values carry over to async threads. Learn why context used to get lost, what changed, and how to configure it.
-
Fine-grained Jackson configuration in Spring Boot 4.1
Spring Boot 4.1 adds dedicated spring.jackson.read.* and spring.jackson.write.* properties so you can control serialization and deserialization separately without touching Java code. Here's what changed and how to use it.