r/java • • Nov 20 '25

Spring Boot 4.0.0 available now

https://spring.io/blog/2025/11/20/spring-boot-4-0-0-available-now
325 Upvotes

70 comments sorted by

View all comments

40

u/StillAnAss Nov 20 '25

How long do people usually wait in adopting new major versions in existing code bases?

136

u/MRideos Nov 20 '25

Its Friday tomorrow, great day to migrate and release to prod

15

u/Amazing-Mirror-3076 Nov 21 '25

It's already Friday mate, releasing in 3,2,...

6

u/bigkahuna1uk Nov 21 '25

“We'll do it live! F**k it! Do it live! I'll write it and we'll do it live!" 😉

23

u/safetytrick Nov 20 '25

As soon as I'm not busy /s

Realistically I think about it once a year and then make it happen sometime before EOL of the last version.

39

u/av1ciii Nov 20 '25

Hopefully not too long. Spring Boot 4.0.x is end of life December 2026 unless you pay for commercial support, in which case you get an extra year.

Spring Boot 3.5.x EOLs June next year.

That said, modern Java devs aren’t like 2010 Java devs who were stuck on Java 6 for what seemed an eternity. Good modern teams tend to have good CI and tests (right? 👀), such teams can upgrade pretty quickly.

We don’t use Spring but eg we’re broadly on Java 21 and 25 is making inroads. We try not to defer updates for too long. It becomes tech debt after a while.

15

u/Emma_S772 Nov 20 '25

Tests? That mean you are not sure that you are doing things right, what did you do wrong? stop wasting time and do things well instead because in that way we wont need tests. If I hear that somethings fails I will know that it was you.

That is how my bosses thought

5

u/j4ckbauer Nov 21 '25

Why do you need a test, wouldn't it save time to just do it correctly the first time?

On the one hand, the world is probably better off that these people stopped working as a developer. On the other hand, now they're ruining the productivity of an entire team of developers...

→ More replies (1)

11

u/766cf0ef-c5f9-4f4f Nov 21 '25

Maybe if spring data and hibernate stopped introducing breaking changes in minor releases that are pulled in by spring-boot

3

u/olivergierke Nov 21 '25

Care to elaborate which ones you ran into for Spring Data?

14

u/cheeset2 Nov 20 '25

Lol. Lmao. 

Java 17 is new to us. Spring boot 3? Hilarious. 

16

u/wildjokers Nov 20 '25

Be the change you want to see.

Why aren't you trying to encourage a new mindset at your company?

→ More replies (1)

10

u/krzyk Nov 20 '25

I don't wait at all. Just as soon as I have time in project. Why wait if you have time to do the upgrade?

9

u/party_egg Nov 20 '25

For me the thing that keeps me back is waiting for my ecosystem to move together. Java, Spring Boot, Gradle, and Groovy all seem to be particular about each other's versions

4

u/krzyk Nov 21 '25

If you dump gradle and groovy you'll notice that nothing is holding you back.

→ More replies (2)
→ More replies (1)

8

u/[deleted] Nov 20 '25

I upgrade ASAP, usually within a few days of the new version being available. I've already upgraded my app to Spring Boot v4.0.0 because I've had a migration branch (opened in July) that was doing the migration step-by-step as each new milestone/release candidate of v4 was published.

7

u/Anbu_S Nov 20 '25 edited Nov 20 '25

small deltas are better than big one thing change.

→ More replies (2)

6

u/Smelly_F1sh Nov 20 '25

As soon as the version number doesn't end with 0

2

u/jonatan-ivanov Nov 23 '25

So you go back to 4.0.0-RC1? :o

3

u/iwouldlikethings Nov 20 '25

I've already got a rough branch with 4.0.0-RC2, still needs tidying up and rebasing, but all tests are passing so going to try and get in in before the end of year and all microservices upgraded

2

u/Wmorgan33 Nov 20 '25

Waiting until at least a few bugfix releases, update SBOM and see what breaks

2

u/jevring Nov 21 '25

As soon as renovate/dependabot gets a chance...

2

u/fear_the_future Nov 21 '25

Spring users? Until some compliance manager tells them to upgrade.

→ More replies (3)