This Week in Spring - 22/2/22

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

Hi, Spring fans! Welcome to another installment of This Week in Spring! How are you? I'm doing alright, thank you! I'm really excited about this week, too, because it features a ton of cool stuff. Also, it's 22/2/22! And I posted this at 22:22! :D

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 | ...

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