filmov
tv
What's new in Spring boot 3 | Latest features | How to Migrate Spring boot 3.0 | Code Decode
Показать описание
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
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
Комментарии