What's new in Spring boot 3 | Latest features | How to Migrate Spring boot 3.0 | Code Decode

preview_player
Показать описание
Spring boot 3 Interview Questions and Answers are also covered in this video as a part of new features introduced in Spring boot 3.0

Udemy Course of Code Decode on Microservice k8s AWS CICD link:

Course Description Video :

When is spring boot 3.0 released?

Spring Boot 3.0 is officially released in November, 2022 with some new features and improvements. Specifically 24th Nov 2022

Why is everyone making fuss about it ?
This is the first major release of Spring Boot after the release of Spring Boot 2.0 around 4.5 years ago

It is also the first Spring Boot GA release to support Spring Framework 6.0. As a developer, we need to be aware of these updates in order to work smoothly with Spring Boot.

Major change : this release has dropped all the support for older versions of Java.

So if u are using java 8, 11 etc you first need to migrate to java 17 before migrating from Spring 2 to spring 3.

What exact version is released recently ?

What this release already scheduled ?
Yes this release was already scheduled in nov 2022.

Spring Boot releases a new major or minor version every six months (in May and November).

Patch releases are published as necessary.

Looking at historical releases, major Spring versions have been released every four years, with
Spring Boot 1 in 2014
Spring Boot 2 in 2018
Spring Boot 3 in 2022.

Minor releases fill in the gaps between those releases, with a minor release every six months.

What’s new with this Spring boot 3.0 ?
Major changes are around
Java version - 17 or later
Gradle version - 7.3 Or later
Spring Framework version - 6 (latest released on 16 November 2022)
Jakarta EE version
and the resulting dependency upgrades and deprecations.

The biggest change in Spring Boot 3 is the decision to use Java 17 as the minimum version. Requiring Java 17 and newer is a big move, with Spring set to be the first major framework to require this recent LTS release.

Java 17 is the latest LTS (Long-term Supported) version with all the new features introduced in recent Java versions such as records(quick way to create DTOs), instanceof changes, multiline strings( using Text Blocks without the need to concatenate strings on line breaks:) etc.

Spring Boot 3.0 also works well, and has been tested with JDK 19.
The most important change might be the jump from Java EE to Jakarta EE9, where the package namespace changed from javax.* to jakarta.*. FYI - EE is Enterprise Edition

As a result, we need to adjust all imports in our code whenever we use classes from Java EE directly.

For example, when we access the HttpServletRequest object within our Spring MVC Controller, we need to replace:

To

This breaks backward compatibility and is the source of most issues in the migration process. It will use the jakarta packages namespace instead of javax namespace.
Changes are mostly with Jpa and servlets packages

What’s Java EE, Java 2EE, J2EE, or now Jakarta EE??

What else new is there in Spring boot 3.0?

Whats deprecated in Spring boot 3.0?

How to upgrade / Migrate from existing Spring boot version to Spring boot 3.0 ?

Hibernate Interview Questions and Answers:

Spring Boot Interview Questions and Answers:

Subscriber and Follow Code Decode

#springboot3.0 #springboot #codedecode
Рекомендации по теме
Комментарии
Автор

Great stuff...Would love to get a detailed video on Java 17.

satyapanigrahy
Автор

Great way to explain 😊.
Please create video on Java 17 features as well.

AshishYadav-sedb
Автор

Please make videos Java 17 features... You are really Great!!! Thanks a lot 😊

nagireddy
Автор

Great stuff...Would love to get a detailed video on Java 17, THX

phanimc
Автор

Thanks a lot for this amazing stuf. Kindly provide a vedio on remaining

priyankasundar
Автор

Thanks for a really comprehensive course on udemy !!!! I think spring security is not covered here, if possible spring webflux migration as well?

jeet
Автор

Nice tutorial. Can you create a video on Java17 features?

venkatkurumeti
Автор

Please Bring Java 17 Features Video. it will be a great help

RR-iyzm
Автор

While migration from spring boot 2.x to 3.x lombok @data is not working
For the getters & setters it says cannot find symbol
1.migrated springboot version
2.replaced javax to jakarta
3.having a requirement to upgrade tomcat-embed-core from 9.0.83 to 10.0.10

Getting build error plz help

thenmozhis
Автор

Very nice video..I am java 8 user ..and like to know most useful features till java 17

atulpatil
Автор

Can you please make a video on how to use latest spring security? WebConfigurerAdapter is deprecated but I am unable to use it's alternative.

compiled
Автор

You deserve a double likes but unfortunately, google doesn't provide that option.

sekharsamanta
Автор

Please create video on Java 17 features too

prasanthiganji
Автор

What are the benefits of going to Spring Boot 3? and please create video from java 17

hamednikbakht
Автор

New version bugs @EnableEurekaClient it's not working in microservices project it's not fixed bugs

Akshay
Автор

Pls create videos on java 17 and java 11 as well if possible

alekyajaini
Автор

How to migrate Kafka events in spring boot 3.x. it will be a great help

debasishpradhan
Автор

Hi, can you make a video the latest spring security JWT token example. Thank you.

dmode
Автор

Hi Team,
Can you help to provide javers dependency which is used for auditing purpose. spring 2.7.6 it was working which I was excluding from autoconfiguration but when I am upgrading my application to 3.0.5 it giving error and saying javers bean object not injected .

No qualifying bean of type 'org.javers.core.Javers' available: expected at least 1 bean which qualifies as autowire candidate

meraj
Автор

Java 11 features in detail please, TIA

theliongamers