Spring And Spring Boot Versions - header image

Spring And Spring Boot Versions

Last updated on September 08, 2023 -
Star me on GitHub →  

A short guide to the latest Spring and Spring Boot versions, as well as information on the release cycle and maintenance windows.

What is the latest Spring Framework version?

The current stable version, as of September 2023, is Spring 6.0.11. You can always find new version announcements on https://github.com/spring-projects/spring-framework/releases.

What is the latest Spring Boot version?

The current stable version, as of September 2023, is Spring Boot 3.1.3. You can always find new version announcements on https://github.com/spring-projects/spring-boot/releases.

What Java version does the latest Spring Boot support?

Spring Boot 3.1.3 requires Java 17 as a minimum version. If you are currently using Java 8 or 11, you’ll need to stick to the 2.x release train.

What Spring version should I use?

Choosing a Spring version is relatively simple:

  • If you are building new Spring Boot projects, the version of Spring you are using is already pre-defined for you. If you are using Spring Boot 3.x, for example, you will be using Spring 6.x (though, in theory you could override this).

  • If you are using plain Spring in a greenfield project, you can obviously choose whatever version you want, which will usually be the latest one.

  • If you are using Spring in a legacy project, you can always think about upgrading to a newer Spring version if that makes sense from a business perspective (or if you want to respect the EOL announcements)- Spring versions have a high amount of compatibility (see next paragraph).

Realistically, you’ll find Spring Framework versions 4.x-5.x, as well as Spring Boot versions 1.x-2.x used by companies, though the rare, legacy 3.x (initial release: 2009) Spring project also pops up.

How often do new versions of Spring get released? How long are they supported?

You’ll need to differentiate between Spring Framework and Spring Boot (which builds upon Spring Framework).

Here’s a nice, little graph showing you Spring Framework’s version history:

springversions v3

You can see that the initial Spring release was ~17 years ago, with major framework versions being released every 3-4 year. This does not account for maintenance branches, however.

  • Spring 4.3 for example, has been released in June 2016, and will be supported until the end of 2020.

  • Support for Spring 5.0 and 5.1 will be cut off at the end of 2020, in favor of Spring 5.2 and Spring 5.3, which have been released in September 2019 and October 2020, respectively.

  • Spring 5.2.x will be supported until the end of 2021.

  • Spring 5.3.x has long-term support provided on JDK 8, JDK 11 & JDK 17.

See the Spring Framework Versions page for all support timelines.

Here’s another graph showing you Spring Boot’s version history. As you can see, versions are released much more frequently.

springbootversions v5

What are the differences between Spring versions?

Similar to the JVM, Spring versions are insanely backwards compatible, which means you can (essentially) still run your Spring 1.0 xml files with the latest Spring 6.x (though I admittedly haven’t tried that out, yet). In addition, upgrading from, say 3 to 6 is also possible with a bit of effort (see this migration guide).

So, in general, newer Spring versions build on top of the older Spring versions and have minimal breaking changes (compared with, say Python 2 vs 3). So, all core concepts you learned for Spring version 3 or 4 are still true for Spring version 5.

You can get a great overview of what changed over the last 7 years in the individual Spring versions, here:

To give you an executive summary:

The core (dependency injection, transaction management etc.) always stays the same or gets extended. Spring, however, goes with time and offers support for newer Java language versions, test framework enhancements, Websockets, reactive programming, etc.

Fin

Do you have any more questions regarding Spring versions? Let me know in the comments!

There's more where that came from

I'll send you an update when I publish new guides. Absolutely no spam, ever. Unsubscribe anytime.


Share

Comments

let mut author = ?

I'm @MarcoBehler and I share everything I know about making awesome software through my guides, screencasts, talks and courses.

Follow me on Twitter to find out what I'm currently working on.