EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 600+ Courses All in One Bundle
  • Login
Home Software Development Software Development Tutorials Spring Tutorial Spring Boot Versions
Secondary Sidebar
Spring Tutorial
  • Spring Boot
    • What is Spring Boot
    • Spring Boot flyway
    • Spring Boot framework
    • Spring Boot Logback
    • Spring Boot actuator endpoints
    • Spring Boot gRPC
    • Spring Boot jdbctemplate example
    • Spring Boot ehcache
    • Spring Boot Architecture
    • Spring Boot Port
    • Introduction of spring boot
    • Spring Boot ide
    • Spring Boot Netty
    • Spring Boot ORM
    • Spring Boot Versions
    • Spring Boot JUnit
    • Spring Boot Keycloak
    • Spring Boot gradle
    • Spring Boot Lombok
    • Spring Boot autowired
    • Spring Boot bean
    • Spring Boot hibernate
    • Spring Boot integration test
    • Spring Boot jdbc
    • Spring Boot MongoDB
    • Spring Boot postgresql
    • Spring Boot rest
    • Spring Boot swagger
    • Spring Boot thymeleaf
    • Spring Boot Unit Test
    • Spring Boot Webflux
    • Spring Boot webclient
    • Spring Boot kubernetes
    • Spring Boot Properties
    • Spring Boot Validation
    • Spring Boot Feature
    • Spring Boot Application
    • Spring Boot email
    • Spring Boot MVC
    • Spring Boot Exception Handling
    • Spring Boot Starter Parent
    • Spring Boot Docker
    • Spring Boot Logging
    • Spring Boot Query
    • Spring Boot Multiple Data Sources
    • Spring Boot Basic Authentication
    • Spring Boot Test
    • Spring Boot jwt
    • Spring Boot Liquibase
    • Spring Boot Prometheus
    • Spring Boot debug
    • Spring Boot GraalVM
    • Spring Boot Batch
    • Spring Boot controller
    • Spring Boot CLI
    • Spring Boot file upload
    • Spring Boot interceptor
    • Spring Boot Service
    • Spring Boot Configuration
    • Spring Boot Datasource Configuration
    • Spring Boot Annotations
    • Spring Boot Starter We
    • Spring Boot Actuator
    • Spring Boot DevTools
    • Spring Boot Repository
    • Spring Boot Dependencies
    • Spring Boot Path Variable
    • Spring Boot Microservices
    • Spring Boot Run Command
    • Spring Boot application.properties
    • Spring Boot Transaction Management
    • Spring Boot Banner
    • Spring Boot JPA
    • Spring Boot Change Port
    • Spring Boot RestTemplate
    • Spring Boot cors
    • Spring Boot HTTPS
    • Spring Boot OAuth2
    • Spring Boot Profiles
    • Spring Boot Interview Questions
    • Spring Boot filter
    • Spring boot logging level
    • Spring Boot Cache
    • Spring Boot Advantages
    • Spring Boot Scheduler
    • Spring Boot Initializr
    • Spring Boot Maven
    • Spring Boot Admin
    • Spring Boot Tomcat
    • Spring Boot WebSocket
    • Spring Boot Executable Jar
    • Spring Boot CommandLineRunner
    • Spring Boot DataSource
    • Spring boot grpc
    • Spring Batch Scheduler
    • Spring Batch Example
    • Spring Batch Tasklet
    • Spring Batch Admin
    • Spring Batch
    • Spring Boot Qualifier
    • Spring Boot War
    • Spring Boot Test Configuration
  • Spring
    • What is Spring Framework?
    • Spring Architecture
    • What is Spring Integration?
    • IoC Containers
    • What is AOP?
    • Spring Modules
    • Spring Batch Processing
    • Spring Batch Partitioner
    • Spring Batch Job
    • Spring AOP
    • Spring Expression Language
    • Dependency Injection in Spring
    • Spring Batch Architecture
    • Spring framework Interview Questions
  • Spring Cloud Basics
    • What is Spring Cloud
    • Spring Cloud Contract
    • Spring Cloud Components
    • Spring Cloud Version
    • Spring Cloud Data Flow
    • Spring cloud stream
    • Spring Cloud Dependencies
    • Spring cloud microservices
    • spring cloud gateway
    • Spring Cloud Config
    • Spring Cloud Kubernetes
    • Spring Cloud Sleuth

Related Courses

Spring Boot Certification Course

Spring Framework Course Training

All in One Data Science Course

Spring Boot Versions

By Shalu SharmaShalu Sharma

Spring Boot Versions

Introduction to Spring Boot Versions

Spring boot releases various versions but the latest spring boot version is v2.2 with many new features. As we all know it is an open-source framework. It is used to create production-ready applications and microservices.

All in One Software Development Bundle(600+ Courses, 50+ projects)
Python TutorialC SharpJavaJavaScript
C Plus PlusSoftware TestingSQLKali Linux
Price
View Courses
600+ Online Courses | 50+ projects | 3000+ Hours | Verifiable Certificates | Lifetime Access
4.6 (86,198 ratings)

Versions of Spring Boot

Given below are the different versions of Spring Boot:

Start Your Free Software Development Course

Web development, programming languages, Software testing & others

Older Versions and Current Version

Older Versions:

  • v1.1
  • v1.2
  • v1.3
  • v1.4

Current Version:

  • v2.0
  • v2.1
  • v2.2

1. v1.1

In this version test, POM i.e. spring-boot-starter-test is not going to add automatically to the parent class i.e. spring-boot-starter-parent. They have added default-test dependencies to parent POM but we cannot remove or changed them easily.

  • Multipart Configuration: Here they have renamed some classes like MultiPartConfigFactory has been rename to MultipartConfigFactory.
  • Error Controller: Here they have moved some interface and classes related to error handlings like errorController related classes and interfaces classes moved to spring-boot-autoconfigure before they are available in spring-boot-actuator. These changes are clear to the end-users, also they have renamed some packages.
  • Spring data auto-configuration packages: Auto-configuration files moved to sub-packages. They cannot be used directly if we want to reference them using annotation @EnableAutoConfiguration with its exclude attribute, in this case, we may require to change the imports.
  • Running our spring boot application using maven: Spring boot now provides a spring-boot run to run our application from the command line with no command-line argument we need to mention.

2. v1.2

  • Severs: In this version, spring boot uses some embedded servers which are: Tomcat 8, Jetty 9. If you want you can also use Tomcat 7 and Jetty 8.
  • Loggers: In spring 1.2they have updated the default configuration for logging, we do not need to write log files. But we can still customize our loggers by adding logback.xml
  • Configuration Property: Rename some of the property like spring.data.mongodb.repositories.enabled.. which was before spring.data.mongo.repositories.enabled.
  • @SpringBootApplication: They have added one new annotation i.e. @SpringBootApplication which is the combination of some of the annotations like @ComponentScan + @configuration + @EnableAutoConfiguration. Now we only need to use this single annotation instead of these three.
  • Email: They have added a new POM to provide support for email i.e. spring-boot-starter-mail. We can use this by just to inject ‘JavaMailSender’ into our service also we can use the property of spring.mail.* to customize items such as SMTP.
  • Undertow: One more embedded server is added i.e. Undertow with addition to tomcat and jetty.

3. v1.3

  • Developers Tool: In this spring boot version they have to include a dev tool i.e. spring-boot-dev tools it will improve the development time experience.

This module provides us :

  1. Automatic start of the application.
  2. Disable template caches.
  3. Support remote development.
  4. It also persists in HTTP sessions on restarts.
  5. Auto-configuration for Cache: They have provided auto-configuration for a various point

Given below are auto-configuration for various points:

  1. Redis
  2. Infinispan
  3. EhCache
  4. Guava
  5. JSR 107
  6. Hazelcast
  • Apart from this it also provides support for in-memory map-based. when we use @configuration with @EnableCaching so caching will automatically be configured in our application.
  • Cassandra: They have also provided support for Cassandra.

4. v1.4

Third-party library upgrades:

  1. tomcat
  2. jetty
  3. Jackson
  4. spring session
  5. spring integration
  6. hibernate
  7. jersy
  8. spring rest docs
  9. Ehcache
  10. Hazelcast
  11. Elasticsearch etc.
  • Couchbase Support: They have provided auto-configuration for Couchbase.
  • Neo4J Support: They have also provided auto-configuration for Neo4J. We can now connect to the remote server also we can run a Neo4J server.
  • Redis Spring Data Repositories: We can now use Redis with the spring data repository.
  • Analysis on Startup Failure: spring now provides us the analysis of startup failures, also gives us useful diagnostic information.

5. v2.0

  • Spring boot v2.0 needs java 8.0 as the minimum version of java. So java 8 has come across many new features like lambda expression, functional interface, stream apis, time API, default method in interfaces, etc. so many existing applications are updating themselves to use these java8 features.

Third-party library updates :

  1. Hibernate
  2. tomcat
  3. Thymeleaf
  4. Flyway
  • Property Binding Configuration: This process is used to bind our environment process to @ConfigurationProperties.
  • Netty Server: Offer support for netty as an embedded server. For his spring-boot-starter-webflux, POM will pull the netty for us.
  • Kotlin: In this version Spring boot also provides support for Kotlin.
  • Actuator Improvements: They have provided all HHTP endpoints to the actuator also the JSON paylods are improved. They also have so many improvements tit he actuator endpoints in this version.
  • Hypermedia: Now the actuator endpoint available in link formate.
  • Actuator Endpoint: Now we can use @Endpoint annotation with @DeleteOperation, @ReadOperation, and @WriteOperation to develope our endpoint.

6. v2.1

Third-party library :

  1. Micrometer
  2. Tomcat
  3. Hibernate
  4. Undertow
  5. JUnit
  • Data Size Support: With this release, they support metadata and easy format. If a property wants to declare its size then it can use org.springframework.util.unit.data size.
  • Logging: They have configured loggers in the one-shot. Like we can configure tomcat group which will do Catalina, coyote, and tomcat logger in one single shot.
  • Task Scheduling: We can customize the task scheduler using spring.task.scheduling. Spring boot configures the task scheduling when we use @EnableScheduling annotation in our application. Now TaskSchedulerBuilder is the default.
  • Task Execution: We can create custom ThreadPoolTaskExecutor by using TaskExecutorBuilder. in this version of spring it provides auto-configuration for task executor.
  • Kafka Streams Support: They now provide auto-configuration for Kafka support by declaring org.apache.Kafka:Kafka-streams dependency.
  • Spring JDBC Support: Now spring boot will automatically configure JDBC when we provide the necessary dependencies on the classpath. Or we can also include them by using single dependency spring-boot-starter-data-jdbc.

7. v2.2

  • Performance Improvements: In this version, there are performance improvements by adding proxyBeanMethods into the class which contains @configuration annotation. We need to set this property as false like: proxyBeanMethods=false it the new attribute of @configuration annotation.
  • They have disabled the tomcat registry by default. also, they have reduced the tomcat memory by 2MB.
  • They have reduced the time taken by @configuration property.
  • Now the beans which are related to the Actuator endpoint only be created if the given endpoint is exposed and enabled.
  • They also improved the condition for auto-configuration now code will no longer be configured if it is not in use.
  • Kubernetes: Now they can detect whether the application running on Kubernetes or not.
  • Lazy Initialization: Now we can also enable the global lazy-initialization for this we need to use some property i.e. spring.main.lazy-initialization.

Conclusion

So spring boot running on the latest version v2.2 with all new features where we can make our application as small services says microservices.

Recommended Articles

This is a guide to Spring Boot Versions. Here we discuss the introduction and different versions of Spring Boot in detail. You may also have a look at the following articles to learn more –

  1. What is Spring Framework?
  2. Spring Cloud Components
  3. Spring Boot DevTools
  4. Spring Boot Actuator
Popular Course in this category
Spring Boot Training Program (2 Courses, 3 Project)
  2 Online Courses |  3 Hands-on Projects |  22+ Hours |  Verifiable Certificate of Completion
4.5
Price

View Course

Related Courses

Spring Framework Training (4 Courses, 6 Projects)4.9
All in One Data Science Bundle (360+ Courses, 50+ projects)4.8
1 Shares
Share
Tweet
Share
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Java Tutorials
  • Python Tutorials
  • All Tutorials
Certification Courses
  • All Courses
  • Software Development Course - All in One Bundle
  • Become a Python Developer
  • Java Course
  • Become a Selenium Automation Tester
  • Become an IoT Developer
  • ASP.NET Course
  • VB.NET Course
  • PHP Course

ISO 10004:2018 & ISO 9001:2015 Certified

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Software Development Course

C# Programming, Conditional Constructs, Loops, Arrays, OOPS Concept

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more