Category: Spring
-
I Finally Understand What MCP Is For
If you’re a developer, you’ve probably heard about MCP — the Model Context Protocol. It’s the hottest thing in AI, and posts and videos about it are appearing everywhere. Maybe you’ve even looked at the documentation, nodded along with the technical explanations (“it’s a protocol for connecting AI models to tools”), and thought, “But why…
-
Waiting for Spring AI Streaming Responses in JUnit Tests

See three different ways to wait for asynchronous responses from inside JUnit tests
-
A Really Easy Way to Add AI to Java

My latest video is about accessing the Claude AI API in a Spring Boot application: The title is a little click-baity for my taste, especially because the LangChain4J project is even easier. Still, the input and output request types for Claude AI are so incredibly simple, that this really did make the resulting Spring and…
-
Using Spring HTTP Exchange Interfaces to access REST services
Summary and discussion of my YouTube video on using Spring’s HTTP exchange interfaces as a client for a free restful web service.
-
Spring with ChatGPT
Last week I published another video on my YouTube channel. The title is Spring & AI without Spring AI: Chat with GPT. It’s part of my series on integrating the OpenAI services into Java systems without using the experimental Spring AI framework. Nothing against that framework, of course — it’s just very early in the…
-
Spring’s queryForStream Method
During one of my recent Spring and Spring Boot training course, I talked about the three major ways to access relational data from Spring: Send already-worked-out SQL using the JdbcTemplate, Work with Hibernate by injecting the JPA EntityManager using the @PersistenceContext annotation, and Simply extend one of the Spring Data interfaces, like CrudRepository. I told my students how I always struggle…
-
Cool Groovy aspect in Spring
I’ve been teaching a lot of Spring framework classes lately. In one of them, we have a unit on Aspect Oriented Program (AOP) in Spring. Spring provides all the necessary infrastructure to make AOP doable. You can define aspects using annotations, and Spring will auto-generate the necessary proxies to implement them. As an example, the…
-
SpringOne 2GX final thoughts
I wound up too busy to maintain my daily reports, but here are a couple of items I want to highlight as important take-aways from SpringOne 2GX. Rather than just recap sessions or dole out marketing-type praise, I’m going to focus on some things I learned that I didn’t necessarily expect. A lot of people…
-
SpringOne 2GX Day 1
… or day 2, by the official count. Today was the first full day of sessions, though, so I’m counting from 1. From now on, I can only comment on the sessions I attended. There were many parallel sessions I wish I could have gone to, but until I get one of those cool Time…