This Week in Spring - October 8th, 2024
Hi, Spring fans! Welcome to another installment of This Week in Spring! I'm in Antwerp, Belgium, for the amazing Devoxx Belgium 2024 event! I am so happy to be back here, one of the best shows in the Java ecosystem!
We've got a lot to get into so let's dive right in!
- From Spring Cloud Data Flow 2.11.x to 3.0
- Supercharging your AI Applications with Spring AI Advisors
mvn clean install
ormvn verify
- the new informational JEP: 14
- authoring webcomponents in a Spring Boot Thymeleaf project
- "...After evaluating various options, we have decided to tentatively migrate Spring Framework 7 to JSpecify annotations and deprecate Spring null-safety annotations" - woohoo!
- Did we mention that JTE is on the Spring Initializr?
- What is this blasphemy? Who would want to change the Spring Boot banner? - this article is an example of what never to do!
- …
From Spring Cloud Data Flow 2.11.x to 3.0
Dear Spring Community,
With the recent announcement of Spring Framework 7.0 and Spring Boot 4.0, the Spring Cloud Data Flow team is pleased to announce the next major release, SCDF 3.0, to align with both Spring Framework 7.0 and Spring Boot 4.0.
This will bring the following SCDF ecosystem of projects in line with Spring Framework 7.0 and Spring Boot 4.0:
- Spring Cloud Data Flow server components (SCDF core and Skipper servers)
- Composed Task Runner, SCDF Shell, Single Step Batch Job, and Task Launcher
- Spring Cloud Deployer Implementations for both Cloud Foundry and Kubernetes
- Spring Cloud Data Flow UI
- Spring Cloud Stream/Task workloads based on Spring Boot 4.0 …
Supercharging Your AI Applications with Spring AI Advisors
In the rapidly evolving world of artificial intelligence, developers are constantly seeking ways to enhance their AI applications. Spring AI, a Java framework for building AI-powered applications, has introduced a powerful feature: the Spring AI Advisors.
The advisors can supercharge your AI applications, making them more modular, portable and easier to maintain.
If reading the post isn't convenient, you can listen to this experimental podcast, AI-generated from blog's content:
What are Spring AI Advisors?
At their core, Spring AI Advisors are components that intercept and potentially modify the flow of chat-completion requests and responses in your AI applications. The key player in this system is the AroundAdvisor…
This Week in Spring - October 1st, 2024
Hi, Spring fans! it's the first of October! We're officially in the fourth quarter of 2024! Time's moving too quickly. Way too quickly. But as always, there's awesome stuff afoot, so let's dive right in!
- Spring Framework lead Juergen Hoeller looks at the road ahead, to Spring Framework 6.2 and Spring Framework 7.0
- In this first installment, Oded Shopin looks at integrating Spring AI into the famous Spring Petclinic application
- Oded Shopin continues his effort in this second part
- Spring director Michael Minella looks at the extension of Spring Boot 2.7's support timeline
- In this installment of the podcast, I talk to Oracle Java Developer Advocate Billy Korando, looking at Java 23, Structured Concurrency, and more
- Want to be a good public speaker? …
From Spring Framework 6.2 to 7.0
Dear Spring community,
Spring Framework 6.2 is shaping up for general availability in November 2024, with particularly significant revisions in the core container and in our web support: see "What's New in Spring Framework 6.2". This release is designed for use with JDK 17-23 and Jakarta EE 9-10.
At the same time, we are planning toward 2025 already, and it is my pleasure to announce that our November 2025 release will be the start of a new major generation: Spring Framework 7.0!
We will upgrade our baseline to Jakarta EE 11 (Tomcat 11, Hibernate ORM 7, Hibernate Validator 9) and embrace the upcoming JDK 25 LTS, while retaining a JDK 17 baseline in alignment with the wider Java ecosystem. For Kotlin applications, we intend to base Spring Framework 7's support on Kotlin 2. Last but not least, our null-safety strategy is converging with the recently released JSpecify…
AI Meets Spring Petclinic: Implementing an AI Assistant with Spring AI (Part II)
Recap of Part I
In the first part of this blog series, we explored the basics of integrating Spring AI with large language models. We walked through building a custom ChatClient, leveraging Function Calling for dynamic interactions, and refining our prompts to suit the Spring Petclinic use case. By the end, we had a functional AI assistant capable of understanding and processing requests related to our veterinary clinic domain.
Now, in Part II, we’ll go a step further by exploring Retrieval-Augmented Generation (RAG), a technique that enables us to handle large datasets that wouldn’t fit…
Spring Boot 2.7 Support Period Extended
Upgrading takes time. We understand that. Spring Boot 3 came out in November of 2022 bringing with it a new, modernized baseline of Java 17 and the migration from Java EE to Jakarta EE. It included over 55 managed dependency updates. Native compilation via GraalVM was a first-class option across the portfolio and observability out of the box was a core capability of all Spring projects. However, it wasn't until Spring Boot 3.2 where we began to see that the community's adoption of Spring Boot 3 surpassing that of Spring Boot 2's adoption. Spring Boot 3 has quickly overtaken Spring Boot 2 but…
AI Meets Spring Petclinic: Implementing an AI Assistant with Spring AI (Part I)
Introduction
In this two-parts blog post, I will discuss the modifications I made to Spring Petclinic to incorporate an AI assistant that allows users to interact with the application using natural language.
Introduction to Spring Petclinic
Spring Petclinic serves as the primary reference application within the Spring ecosystem. According to GitHub, the repository was created on January 9, 2013. Since then, it has become the model application for writing simple, developer-friendly code using Spring Boot. As of this writing, it has garnered over 7,600 stars and 23,000 forks.
The application…
A Bootiful Podcast: Oracle Java Developer Advocate Billy Korando on Java 23, Structured Concurrency, and more
Hi, Spring fans! In this installment I talk to Java Developer advocate at Oracle, Billy Korando, about the amazing new features in Java 23 and beyond!