Spring Data 2020.0 - New and Noteworthy in Spring Data MongoDB 3.1

Engineering | Christoph Strobl | November 13, 2020 | ...

The Spring Data MongoDB 3.1 release is one of the modules that highly benefited from the recent changes in the Spring Data Commons module, by leveraging the infrastructure built there to bring reactive features like auditing and SpEL. The following snippet gives you an impression of what this means for declarative MongoDB queries using SpEL:

@Query("{ 'supervisor' : ?#{ hasRole('ROLE_ADMIN') " +
  "? new Document('$regex', '*') : principal.name } }")
Flux<Person> findAllFilteredByRole();

@EnableReactiveMongoAuditing uses the common infrastructure so you can keep track of changes easily.

This Week in Spring - November 10th, 2020

Engineering | Josh Long | November 11, 2020 | ...

Hi, Spring fans! Welcome to another installment of This Week in Spring! It's November 10th, 2020, as I write this and I, for one, can not believe that we're closer to 2021 than we are to 2019 at this point. That's insane. Time has absolutely rocketed by in some senses and stood utterly still in others. Odd year, this one.

I hope you're all doing well! I'm at the Reactive Summit today (virtually, of course). This afternoon I was on a wonderful panel with all sorts of folks from around the ecosystem. And soon, around 17:30 or so, if memory serves, I'll be speaking about RSocket and its use in…

Spring Data 2020.0 - New and Noteworthy in Spring Data JDBC 2.1

Engineering | Jens Schauder | November 10, 2020 | ...

As part of the 2020.0.0 version of Spring Data, we released Spring Data JDBC 2.1. This article presents the four most interesting changes in this version.

#Use @Value on Entity Constructor Arguments

In some cases, not all the data that goes into an entity comes from the ResultSet of a query. You now may provide an @Value annotation with a SPeL expression that is evaluated, and the result is passed as an argument upon construction of the…

New in Spring 5.3: Improved Cron Expressions

Engineering | Arjen Poutsma | November 10, 2020 | ...

If you regularly listen to A Bootiful Podcast, you might have heard about the improvements we made to Spring Framework’s cron support. Cron expressions are mostly used in Spring applications through the @Scheduled annotation. In Spring 5.3, we introduced the CronExpression class, which represents — you guessed it — a cron expression.

CronExpression replaces CronSequenceGenerator, which is based on java.util.Calendar and which has several known issues that none of the Spring team members felt comfortable solving. Introducing a new type allowed us to use the superior java.time APIs, solve the…

Spring Data 2020.0 - New and Noteworthy - A general Overview

Engineering | Christoph Strobl | November 06, 2020 | ...

Spring Data 2020.0, based on Spring Framework 5.3, is out and with it, a ton of new features across the various stores, which are covered by the individual modules. While posting highlights along with the milestone announcements, we wanted to give you a more detailed description of the new features in a series of blog posts. These posts will cover, among other things:

  • Reactive Context Access features in Data Commons.
  • Lifecycle callbacks and baselining to Spring R2DBC in R2DBC.
  • General Repository and store-specific Redis Cache Metrics.
  • Neo4J reactive repositories.
  • Paging repository APIs for Spring Data for Apache Geode.
  • Geoshape, index, and reactive search improvements for Spring Data Elasticsearch.
  • Partial filter and aggregation hints in MongoDB.
  • @Bean row mappers for the JDBC module.
  • Per-statement key spaces definition for the Apache Cassandra abstraction.
  • Declarative Couchbase N1QL queries.

This Week in Spring - November 3, 2020

Engineering | Josh Long | November 03, 2020 | ...

This Week in Spring - October 27th, 2020

Engineering | Josh Long | October 27, 2020 | ...

Hi, Spring fans! Welcome to another installment of This Week in Spring! It's already nearly November in this crazy rollercoaster ride that is 2020. Crazy.

We've got a ton of stuff to get to so let's waste not a second more.

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