Announcing ListCrudRepository & Friends for Spring Data 3.0

Engineering | Jens Schauder | February 22, 2022 | ...

The Spring Data CrudRepository has various methods that return multiple instances of the entity managed by the repository. It does so by using Iterable and not List, as one might expect. In many cases, that is of no consequence, since you typically want to iterate over the result anyway. However, you might occasionally prefer a List. In these cases, Iterable is annoying.

I will write more about why that choice was made in the first place and how you can deal with it as long as you are on Spring Data 2.x. However, let me get the good news out first:

Repositories returning Lists

Spring Data 3.0.0 now offers a ListCrudRepository in the latest snapshot releases, which returns a List where CrudRepository returns an Iterable

Spring Security without the WebSecurityConfigurerAdapter

Engineering | Eleftheria Stein-Kousathana | February 21, 2022 | ...

In Spring Security 5.7.0-M2 we deprecated the WebSecurityConfigurerAdapter, as we encourage users to move towards a component-based security configuration.

To assist with the transition to this new style of configuration, we have compiled a list of common use-cases and the suggested alternatives going forward.

In the examples below we follow best practice by using the Spring Security lambda DSL and the method HttpSecurity#authorizeHttpRequests to define our authorization rules. If you are new to the lambda DSL you can read about it in this blog post. If you would like to learn more about why we choose to use HttpSecurity#authorizeHttpRequests you can check out the reference documentation

Azure Spring Cloud Enterprise is now available in preview

Engineering | Josh Long | February 16, 2022 | ...

Hi, Spring fans! I wanted to share this post by Julia Liuson, President, Developer Division at Microsoft.

When we launched Azure Spring Cloud with VMware in 2019, we set out to solve common challenges developers, IT operators, and DevOps teams face when running Spring Boot applications at scale. Since then we’ve had the opportunity to work with many customers to help them adopt the service including Bosch, Digital Realty, Kroger, Liantis, Morgan Stanley, National Life, Raley’s, and Swiss Re. They value the fully managed infrastructure of Azure Spring Cloud that lets them focus on their apps…

This Week in Spring - February 15th, 2022

Engineering | Josh Long | February 15, 2022 | ...

Hi, Spring fans! Welcome to another installment of This Week in Spring! We've got a lot to cover so let's dive right into it.

This Week in Spring - February 8th, 2022

Engineering | Josh Long | February 08, 2022 | ...

This Week in Spring - February 1st, 2022

Engineering | Josh Long | February 01, 2022 | ...

Hi, Spring fans! It's a new Lunar year, so that's exciting, and I just celebrated my birthday, and that of my late father, as well. That was exciting. But there was also some bittersweet news. Let's get that out of the way first...

My friend, my hero, Stéphane Maldini, former project lead of Project Reactor and cofounder of the Reactive Streams initiative, passed away two months ago. We in the Java community made him a Java Champion posthumously. We miss him dearly. I think of him when I write reactive code.

Mon ami, mon héros, Stéphane Maldini, ancien lead de l'equipe Reactor et cofondateur…

Get the Spring newsletter

Stay connected with the Spring newsletter

Subscribe

Get ahead

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

Learn more

Get support

Tanzu Spring 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