Tag: 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…
-
SpringOne2GX, Day Minus 3
Yes, that’s a minus sign, because the event in question hasn’t happened yet. This is my first report from the upcoming SpringOne2GX conference, which starts in Dallas, TX next Monday, 9/8/14 (or 8/9/14 for my non-US-based friends). Since there are no talks on the opening day (just an opening keynote and reception), I’m arbitrarily designating…
-
Carlos Ray and Spring’s RestTemplate
Normally I prefer causing trouble to getting in trouble, but this time the temptation is just too great. In my last blog post, I described how I made an Android app that was a front-end on the ICNDB web site, the Internet Chuck Norris Database, only to receive a take-down email from Patton Boggs, LLP,…