Spring Framework 6.2.0-M1: Overriding Beans in Tests

Engineering | Simon Baslé | April 16, 2024 | ...

Spring Framework 6.2.0-M1 has been released, including changes that resolve more than one hundred issues. Among those are a range of new features in Spring's testing support.

In this post, I’d like to walk you through one of these new testing features: Bean Overriding support.

The previous state of affairs

Using the Spring TestContext Framework, you can easily verify the correct wiring of your Spring application within integration tests using an annotation-driven model.

In unit testing, dependency injection and Spring design principles make your code less dependent on the container and make it…

Spring Framework 6.2.0-M1: all the little things

Engineering | Stéphane Nicoll | April 11, 2024 | ...

The Spring Framework team has been busy reviewing the issue tracker in anger and reducing the number of opened issues. This was long overdue, with a number of issues being invalid or superseded in the meantime. This helped the team focusing on a more manageable amount of issues and we used the opportunity to look at long standing issues that we haven’t had the time to address yet.

In this post, I’d like to walk you through a collection of those relatively small issues, sometimes highly voted, that are finally available in this milestone.

Support for escaping property placeholders

Property placeholders are a way to replace a property from the environment in an arbitrary String. Assuming that customer.name is set to "John Smith" in the Environment

This Week in Spring - April 9th, 2024

Engineering | Josh Long | April 09, 2024 | ...

Hi, Spring fans! Welcome to another installment of This Week in Spring! I'm in Las Vegas, NV, at the moment, preparing for my part in the huuuuuge Google Cloud Next keynote. I'm so excited! And then it's off to the amazing and glorious Devnexus event! If you're at either event, please say Hi!.

This Week in Spring - April 2nd, 2024

Engineering | Josh Long | April 03, 2024 | ...

Welcome, welcome, welcome, to another installment of This Week in Spring! You know, we've come a long way since you and I last spoke. It's April already! A new month! How bizarre. And, with the dawning of a new month, we're also more than 25% through this year! I sure hope you're paying attention. That little tidbit's blowing my mind!

Yesterday, by the way, was the first of April, and the tenth birthday of the first generally available 1.0 version of Spring Boot, released on the 1st of April, 2024. Happy birthday, Spring Boot!

Tomorrow, by the way, I'll have a brand new not-to-be-missed video on Java 22 over on our humble YouTube channel, do not miss that

This Week in Spring - March 26th, 2024

Engineering | Josh Long | March 26, 2024 | ...

Hi, Spring fans! Welcome to another installment of This Week in Spring!

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