Unleashing the Power of Spring and AI at SpringOne 2024

August 1, 2024 Josh Long

Wanna see a cool trick? Go to start.spring.io, add OpenAI, and click Generate. Then, specify spring.ai.openai.api-key=... (replacing ... with an actual API token) in application.properties. Paste the following code into the generated DemoApplication.java, replacing everything that's there: 

package com.example.demo;

import org.springframework.ai.chat.client.ChatClient;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

    @Bean
    ChatClient chatClient(ChatClient.Builder builder) {
        return builder.build();
    }

    @Bean
    ApplicationRunner applicationRunner(ChatClient chatClient) {
        return args -> {
            var content = chatClient
                    .prompt()
                    .user("help me write a compelling intro to SpringOne 2024")
                    .call()
                    .content();
            System.out.println("content: " + content);
        };
    }
}

Run it. Voilà! Instant blog!

All of which is to say... you have no idea how hard it was to resist the temptation to have AI write this blog for me! It would have been easy, and I would've gotten away with it, but it wouldn't have captured the editorial essence of my voice, with all its unique quirks and flaws.

That's sort of the rub, isn't it? These incredible tools are at our fingertips but require direction, refinement, and dare I say, purpose.

That's the opportunity, too. The possibilities are endlessly exciting! The totality of problems that might be solved or at least alleviated by writing some software has never been greater because the things we could write software to affect have never been greater. There has never been a better time to be a software developer!

Embracing the Future at SpringOne 2024

I am almost problematically excited about SpringOne 2024, happening in the Las Vegas desert from August 26-28, or wherever and whenever you want because it’s virtual and free! 

That's right! We're bringing the cool of Spring to everyone! It's a celebration of Spring's power in simplifying your production experience. Looking at the schedule, several themes spr... leap - to mind:

    • Core Frameworks: Spring. You know. The reason for the season. The good stuff. It's in the name. This includes Spring Framework, Spring Security, Spring for GraphQL, Spring Boot, etc.
    • Artificial Intelligence: Integrating AI with Spring. Remember: Spring and the Java ecosystem is second to none when it comes to integration. And AI is all about integration.
    • Operations and Production: Streamlining processes and building for production
    • Architecting for Scale: Building scalable code bases, services, and systems.

The opening keynote is a must-see. If you want the biggest bang for your buck and only have 90 minutes to spare, watch the opening keynote! I’ll be there alongside my friends Cora Iberkleid, Dan Vega, Purnima Padmanabhan, Sébastien Deleuze, Mark Pollack, Asi Bross, Paul Bakker, and DaShaun Carter.

Exploring Foundational Technologies

Underpinning all the excitement at SpringOne are foundational technologies like Spring Framework, Spring Boot, Spring GraphQL, and Spring Security. These technologies continue to innovate in unthinkable ways. Highlights include:

    • Spring Basics: Spencer Gibb and Ryan Baxter's introduction to Spring is essential. Sometimes you don't know what you don't know. Start here.
    • GraphQL Talks: Don't miss the individual sessions of Netflix's Paul Bakker and our very own Dan Vega.
    • Tooling for Spring: Microsoft's Brian Benz will discuss IDE tooling in the Spring ecosystem. Personally, I'm hoping he mentions Visual Studio code.
    • Spring Boot Innovations: I’ll present "Bootiful Spring Boot," a roving tour of some things Spring in 2024.
    • Spring Security 6.4: Spring Security lead Rob Winch’s talk is a must-watch update on the latest-and-greatest in this beloved framework. Security is hard, thankless work that people only notice when something isn't secure. So, if you learn something from his talk (and you will), please be sure to thank him. :-)

A Spotlight on Spring AI

One talk you absolutely should not miss is the Spring AI introduction with Dr. Rod Johnson, the founder of Spring, and Dr. Mark Pollack, lead of Spring AI, and yours truly. We'll introduce the state of the art in Spring AI. Denis Magda's talk on plugins for Spring AI is another highlight I'm eagerly anticipating.

Navigating Production Challenges

Production can be challenging, but we're here to help. Key talks include:

    • Optimizing Container Workloads: Sébastien Deleuze’s session will introduce AppCDS, GraalVM, and how to build efficient containers from your Spring Boot workloads.
    • Observability: A deep dive with Micrometer team member Jonatan Ivanov.
    • Spring and Kubernetes: Presented by Kubernetes legend Tiffany Jernigan.
    • Spring Cloud Introduction: Luke Shannon and Spencer Gibb, lead of Spring Cloud, introduce the wide and wonderful world of Spring Cloud.
    • Netflix’s Spring Cloud Stack: Asi Bross's look at Netflix's use of Spring Cloud should be very illuminating.
    • AWS Lambda and Spring Cloud Function: Oleg Zhurakousky and Matthew Meckes look at how to use Spring Cloud Function's MVC component model.
    • Testing at Scale: Netflix's Paul Bakker looks at strategies for testing at scale.
    • Spring Modulith: Tim Sparg's talk on Spring Modulith and how it makes it easier to scale a team is going to be amazing.

Join the SpringOne Celebration

I can't wait! If you share my enthusiasm, spread the word about SpringOne! If you're not yet on board, what are you waiting for? Register now at SpringOne.io. I'll wait.

Let's make SpringOne 2024 an unforgettable experience, celebrating the endless possibilities of software development and the incredible tools at our disposal. See you in Las Vegas!

Josh Long Spring Developer Advocate

PS: "Delve."

About the Author

Josh Long (@starbuxman) is a Spring Developer Advocate at VMware. Josh is a Java Champion, a Google Developer Expert for Kotlin, author of six books (including O'Reilly's "Cloud Native Java: Designing Resilient Systems with Spring Boot, Spring Cloud, and Cloud Foundry") and the just released "Reactive Spring" (ReactiveSpring.io), six best-selling Livelessons video trainings (including "Building Microservices with Spring Boot Livelessons" with Phil Webb and "Spring Security Livelessons" with Rob Winch, and "Cloud Foundry Livelessons" with Josh McKenty), and an open-source contributor (Spring Boot, Spring Integration, Spring Cloud, Activiti and Vaadin). Josh also has a podcast, "A Bootiful Podcast," and does a series of screencasts, "Spring Tips", on YouTube (bit.ly/spring-tips-playlist). Josh routinely blogs on the Spring blog (spring.io/blog)

Follow on Twitter Visit Website More Content by Josh Long
Previous
Don't miss these VMware Tanzu sessions at Explore 2024
Don't miss these VMware Tanzu sessions at Explore 2024

At Explore 2024, the Tanzu Division of Broadcom will unveil the latest innovations in cloud native computin...

Next
Cloud Foundry in Action: Real Customers Stories from Cloud Foundry Day
Cloud Foundry in Action: Real Customers Stories from Cloud Foundry Day

The Cloud Foundry Weekly podcast crew and our customers share practical insights on how their organizations...