close

This Week in Spring - May 3rd, 2022

Hi, Spring fans! Welcome to another installment of This Week in Spring! How are you doin’?

I’m excited! This week I’m speaking at the ArabJUG, and I’ll be speaking at Microsoft’s huuuge JDConf event. Both of these are virtual. Then, next Monday, I’m on a plane bound for London, UK, where I’ll be speaking at Devoxx UK 2022. Then, not even two weeks later, I’ll be speaking at Spring IO, in Barcelona, Spain! Then a week later, I’ll be speaking at JNation, in Lisbon, Portugal. To say that I am excited would be an understatement, my friends.

Read more

Ever wanted to rewrite a query in Spring Data JPA?

Sometimes, no matter how many features you try to apply, it seems impossible to get Spring Data JPA to apply every thing you’d like to a query before it is sent to the EntityManager.

With 3.0.0-SNAPSHOT (and targeted for the next milestone release train of Spring Data), you now have the ability to get your hands on the query, right before it’s sent to the EntityManager and "rewrite" it. That is, you can make any alterations at the last moment.

Check it out below:

Example 1. Declare a QueryRewriter using @Query
public interface MyRepository extends JpaRepository<User, Long> {

    @Query(value = "select original_user_alias.* from SD_USER original_user_alias",
                    nativeQuery = true, queryRewriter = MyQueryRewriter.class) // (1)
    List<User> findByNativeQuery(String param);

    @Query(value = "select original_user_alias from User original_user_alias",
                   queryRewriter = MyQueryRewriter.class) // (2)
    List<User> findByNonNativeQuery(String param);
}
Read more

This Week in Spring - April 26th, 2022

Hi, Spring fans! Welcome to another installment of This Week in Spring! This week I was hoping to be in glorious Chicago, Illinois for the first in-person SpringOne Tour installment since the pandemic. But, alas, I couldn’t go because - out of an abundance of caution, and since I was exposed to COVID19 in Atlanta, GA - it was thought to be safer to keep some folks home and virtual. Sigh. This policy makes perfect sense and it’s what I wanted. But it’s still a smidge disappointing to not be there. I miss y’all! It was fun at least doing a remote presentation.

Read more

Spring Cloud 2021.0.2 Has Been Released

On behalf of the community, I am pleased to announce that the Service Release 2 of the Spring Cloud 2021.0 Release Train is available today. This was primarily a bug fix release. The release can be found in Maven Central. You can check out the 2021.0.2 release notes for more information.

Notable Changes in the 2021.0.2 Release Train

See the project page for all issues included in the release.

Spring Cloud Commons

Read more

Spring Tools 4.14.1 released

Dear Spring Community,

I am happy to announce the 4.14.1 release of the Spring Tools 4 for Eclipse, Visual Studio Code, and Theia.

fixes and improvements

  • (Spring Boot) fixed: use startupSnapshot instead of startup timer call to avoid wiping out the underlying data
  • (Spring Boot) fixed: When vscode opens a Java project for about 2 hours, the suggestion function will fail (#750)
  • (VSCode) enhancement: live hovers are now automatically show up when you launch a Spring Boot application in VSCode. Additional JVM args for the Spring Boot app to enable JMX are added to the launch automatically. More details can be found in the user guide section about Live Application Information.
  • (VSCode) enhancement: add extension APIs to get live data (#751) - contributed by @Eskibear
Read more

Spring Boot 2.7.0-RC1 is now available

On behalf of the team and everyone who has contributed, I’m happy to announce that Spring Boot 2.7.0-RC1 has been released and is now available from https://repo.spring.io/milestone.

This release includes more than a 100 bug fixes, enhancements, documentation improvements, and dependency upgrades. Notable new features include:

  • Auto-configuration for Kafka Retry Topics
  • Auto-configuration for RSocket support in GraphQL

Please see the release notes for more details and upgrade instructions.

Thanks to all those who have contributed with issue reports and pull requests.

Read more

Spring Boot 2.6.7 available now

On behalf of the team and everyone who has contributed, I’m happy to announce that Spring Boot 2.6.7 has been released and is now available from Maven Central.

This release includes 38 bug fixes, documentation improvements, and dependency upgrades. Thanks to all those who have contributed with issue reports and pull requests.

How can you help?

If you’re interested in helping out, check out the “ideal for contribution” tag in the issue repository. If you have general questions, please ask on stackoverflow.com using the spring-boot tag or chat with the community on Gitter.

Read more