~/talk

Choose Your Fighter Spring AI vs LangChain4j

Talkat Devnexus 2026 · 2026-03-04..03-06· [java, ai-assisted-development]
links:none on file
slides:none on file

Compares Spring AI and LangChain4j by showing working code: a chat client that calls a local Ollama Mastral model to explain integrals. Spring AI uses auto‑configured injectable model beans, application.properties/YAML prompts as runtime resources, and produced a terse or ambiguous derivative reply until the template is tightened. LangChain4j wires models and memory explicitly in plain Java, keeps prompts as code, and returns a long, detailed explanation; both approaches run locally via Ollama.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:31What are Spring AI and LangChain4j
  3. 3:13How each framework works
  4. 5:25Why the comparison matters
  5. 6:30Providers and provider APIs
  6. 7:12Prompt lifecycle differences
  7. 7:55Supported models overview
  8. 9:00Demo introduction and goals
  9. 10:26Demo architecture and setup
  10. 12:33Spring AI demo walkthrough
  11. 14:18Spring AI project structure
  12. 17:57Running the Spring AI demo
  13. 19:26LangChain4j demo walkthrough
  14. 19:48LangChain4j project structure
  15. 20:54Running the LangChain4j demo
  16. 22:41Dependency examples for providers
  17. 23:24Documentation resources
  18. 24:28Which one should you choose
  19. 25:50Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.