This Week in Spring - March 21st, 2023

Engineering | Josh Long | March 21, 2023 | ...

Hi, Spring fans! Welcome to another rip roaring installment of This Week in Spring! It's March 21st and today they announced Java 20! It's an exciting time to be a Java developer. Java 20, of course, is just another amazing installment before Java 21, which comes out in six short months, including Project Loom. And, of course, Spring Framework looks set to provide integrations with it in Spring Framework 6.1. It's an amazing time to be a Java and Spring Boot developer!

Spring Data JPA introduces query parser!

Engineering | Greg L. Turnquist | March 21, 2023 | ...

The Problem

One of Spring Data JPA’s handy features is letting you plugin in custom JPA queries through its @Query annotation.

This allows some flexiblity because you are still able to offer sort parameters to the consumers of your app. Check out the example below:

interface SampleRepository extends CrudRepository<Employee, Long> {

    @Query("select e from Employee e where e.firstName = :firstName")
    List<Employee> findCustomEmployees(String firstName, Sort sort);

}

Spring Data JPA will turn this custom query into a JPA query when provided not just with a criteria (firstName) but also a custom sort via findCustomEmployees("Alice", Sort.by("lastName"))

Kotlin DSLs in the world of Springdom

Engineering | Josh Long | March 17, 2023 | ...

Kotlin is a beautiful language that makes it trivial to take old Java libraries and make them much more concise, just by virtue of the Kotlin syntax itself. It shines, however, when you write DSLs.

Here's some inside baseball for you: the Spring teams do their level-headed best to be cohesive, to align on core themes, and to make Spring better than the sum of its parts. You see this in every major release: XML namespaces in Spring Framework 2.0. Java Config in 3.0. Conditionals and autoconfiguration when Spring Boot 1.0 first shipped alongside Spring Framework 4.0. Reactive programming with…

A Bootiful Podcast: Spring Batch lead Mahmoud Ben Hassine on the latest and greatest in 2023

Engineering | Josh Long | March 16, 2023 | ...

Hi, Spring fans! Welcome to another installment of A Bootiful Podcast! In this installment, Josh Long (@starbuxman) talks to Spring Batch lead Mahmoud Ben Hassine (@FMBENHASSINE) about the latest and greatest in Spring Batch.

notes

This Week in Spring - March 14th, 2023

Engineering | Josh Long | March 14, 2023 | ...

Hi, Spring fans! Happy Pi (π) day! And, welcome to another installment of This Week in Spring! It's pouring cats and dogs here in San Francisco! The news is talking about atmospheric rivers; I don't know what that means but I don't know that I want to find out. Anyway, all that to say: I'm glad as always for an opportunity to stay indoors and learn. We've got a lot to review this week so let's dive right into it!

This Week in Spring - March 7th, 2023

Engineering | Josh Long | March 07, 2023 | ...

Hi, Spring fans! Welcome to another installment of This Week in Spring! It's an amazing week, and this week we've got a lot to look at. Let's dive right into it.

This Week in Spring - February 28th, 2023

Engineering | Josh Long | February 28, 2023 | ...

Hi, Spring fans! Welcome to another installment of This Week in Spring! I'm writing this installment from a hotel room in Dallas, Texas, in the USA. Last night I had the privilege of hanging out with some of my friends from the local Java scene. Today I meet with customers. It's going to be a nice few days indeed.

Get the Spring newsletter

Thank you for your interest. Someone will get back to you shortly.

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring Runtime offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all