The Spring Blog

News and Events

Spring Security - Lambda DSL

Overview of Lambda DSL

The release of Spring Security 5.2 includes enhancements to the DSL, which allow HTTP security to be configured using lambdas.

It is important to note that the prior configuration style is still valid and supported. The addition of lambdas is intended to provide more flexibility, but their usage is optional.

You may have seen this style of configuration in the Spring Security documentation or samples.
Let us take a look at how a lambda configuration of HTTP security compares to the previous configuration style.


This Week in Spring - November 18th, 2019

Hi, Spring fans! Welcome to another of This Week in Spring. We’ve got a lot to cover, so let’s get to it!


This Week in Spring - November 12, 2019

Hi, Spring fans! Welcome to another installment of This Week in Spring! I’m in Sydney, Australia, where I’ll begin my tour of Australia, Singapore, Korea, China, and Japan for the Pivotal Summit. I’ll also be doing a Reactive Tour (nested inside the Pivotal Summit Tour) while in China. if you’re in any of the aforementioned countries, or in the Chinese cities of Shenzhen, Hangzhou, Beijing, and Shanghai, then don’t hesitate to say hi! (@starbuxman)

Anyway my friends, we’ve got a lot to get to so let’s get to it!


This Week in Spring - November 5, 2019

Hi, Spring fans! Welcome to another installment of This Week in Spring! This week I’m in Antwerp, Belgium for the epic Devoxx event. I was in Singapore for Devoxx Belgium 2018, and so I missed this event. I am so happy to be here this year.

I finished a “deep dive” session this morning with an amazing crowd of people who hung out with me for 3 hours to talk about Reactive Spring. I’ve got two more one-hour talks on Thursday, “Bootiful Testing,” and “Bootiful Kotlin.” I’m so looking forward to seeing everyone for those talks as well.


Azure Spring Cloud Is Now In Public Preview

Hi, Spring fans! Today we’re excited to announce that Azure Spring Cloud, the runtime for Spring Boot-based applications and Spring Cloud-based microservices jointly developed by Microsoft and Pivotal, is now in public beta. Anybody can try it out now!

As customers have moved their workloads to the cloud, we’ve seen a growth in the use of cloud-native architectures, particularly microservices. Microservice-based architectures help improve scalability and velocity, but implementing them can pose challenges. For many Java developers, Spring Boot and Spring Cloud have helped address these challenges, providing a robust platform with well-established patterns for developing and operating microservice applications.


Spring Cloud Stream - Composed Functions or EIP

In preparation for the upcoming releases of Spring Cloud Stream (SCSt) 3.0.0 - Horsham and Spring Cloud Function (SCF) 3.0.0, we’ve been publishing a series of posts discussing and showcasing new features and enhancements.
We provided motivation and justification for moving away from the annotation-based programming model to the functional model, and then we provided more details on the functional approach, as well as reactive functions.
In another post, which is relevant to what we’re going to be discussing here, Artem demonstrated the benefits of combining functional approaches with the Spring Integration project. We also talked about event routing in our last post.


Spring Cloud Stream - Event Routing

Welcome to another post in a series of posts showcasing the new features of Spring Cloud Stream (SCSt).
In previous posts (available here, here and here), we tried to provide justification for our shift to a functional programming model in Spring Cloud Stream (SCSt). It is less code and less configuration, and your code remains completely decoupled from the internals of SCSt.

Today, we’ll talk about routing with functions.
Routing, in the context of SCSt, is the ability to either a) route events to a particular event subscriber or b) route an event produced by an event subscriber to a particular destination. To help more with the context, let’s quickly look at how things work in the annotation-based programming model. In this post, we’ll refer to it as route ‘TO’ and route ‘FROM’.