Welcome to Spring Boot Tutorial. Spring Boot is a completely new project from Pivotal Team(The Spring Team). It is a Framework developed on top of existing Spring Framework.
Spring Boot uses completely new development model to make Java Development very easy by avoiding some tedious development steps and boilerplate code and configuration.
Spring Boot is a Framework from “The Spring Team” to ease the bootstrapping and development of new Spring Applications. It provides defaults for code and annotation configuration to quick start new Spring projects within no time. It follows “Opinionated Defaults Configuration” Approach to avoid lot of boilerplate code and configuration to improve Development, Unit Test and Integration Test Process.
Spring Boot Framework is not implemented from the scratch by The Spring Team, rather than implemented on top of existing Spring Framework (Spring IO Platform). It is not used for solving any new problems. It is used to solve same problems like Spring Framework.
Don’t worry about what is “Opinionated Defaults Configuration” Approach at this stage. We will explain this in detail with some examples in coming posts.
In Simple Terminology, What Spring Boot means That means Spring Boot is nothing but existing Spring Framework + Some Embedded HTTP Servers (Tomcat/Jetty etc.) - XML or Annotations Configurations. Here minus means we don’t need to write any XML Configuration and few Annotations only.
The main goal of Spring Boot Framework is to reduce Development, Unit Test and Integration Test time and to ease the development of Production ready web applications very easily compared to existing Spring Framework, which really takes more time.
By providing or avoiding these things, Spring Boot Framework reduces Development time, Developer Effort and increases productivity.
Spring Boot Framework has one limitation. It is some what bit time consuming process to convert existing or legacy Spring Framework projects into Spring Boot Applications but we can convert all kinds of projects into Spring Boot Applications. It is very easy to create brand new/Greenfield Projects using Spring Boot. To Start Opinionated Approach to create Spring Boot Applications, The Spring Team (The Pivotal Team) has provided the following three approaches.
We will discuss one by one in detail with some good examples in coming posts. We can find Spring Initializr Website at: https://start.spring.io/ We can develop two flavors of Spring-Based Applications using Spring Boot
We can use Spring Boot CLI or Spring STS IDE or Spring Initializr Website to develop Spring Boot Groovy Applications. However, we can use Spring STS IDE or Spring Initializr Website to develop Spring Boot Java Applications. Anyhow, Groovy is also JVM language almost similar to Java Language. We can combine both Groovy and Java into one Project. Because like Java files, Groovy files are finally compiled into *.class files only. Both *.groovy and *.java files are converted to *.class file (Same byte code format). Spring Boot Framework Programming model is inspired by Groovy Programming model. Spring Boot internally uses some Groovy based techniques and tools to provide default imports and configuration. Spring Boot Framework also combined existing Spring Framework annotations into some simple or single annotations. We will explore those annotations one by one in coming posts with some real-time examples. Spring Boot Framework drastically changes Spring-Java Based Applications Programming model into new Programming model. As of now, Spring Boot is at initial stage only but future is all about Spring Boot only. Happy Spring Boot Framework Learning!
Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.
While we believe that this content benefits our community, we have not yet thoroughly reviewed it. If you have any suggestions for improvements, please let us know by clicking the “report an issue“ button at the bottom of the tutorial.
Nice Tutorial
- Mahesh
Nice introduction
- Dev
good introduction to know about Spring Boot.
- Nilesh
Nice introduction
- Keshav Kumar
Awesome tutorial. You could have kept “Next” button after each and every tutorial to learn the technology in a sequence manner. This helps us a lot… Thanks man :)
- venkat
Awesome tutorial for introduction of spring boot and ease to understand Its helpful to us if you provide more tutorials
- venkatesh
I like this tutorial, but you misspoke when you say it’s to reduce the time compared to Spring framework. The goal is to reduce time compared to ALL technologies (on the JVM, in the Ruby or Node.js or .NET landscapes, etc.). In this, we have succeeded. :)
- Josh Long
I don’t agree that it takes a long time to convert to convert existing apps to Spring Boot. I have converted regular Spring 3.x apps (3 Spring applications) to Spring boot and it was just matter of 1-2 hours. These apps were fairly complex. one thing we followed throughout the lifecycle of pre-spring boot were to completely shun XML based configuration and that really reduced our conversion time. Moreover I have also converted few Play framework 2.4 based apps to Spring Boot and that was a little big undertaking ~3 days. But it was still worth in my opinion.
- Sachin Walia
Its good but if write own tutorials with real time example its beneficial for all but thanks to give overview about the new technology .
- Maqbul FIda Hussain
Hi i am looking for sample spring boot rest service with method interceptor implementation. I tried a lot…but no success.
- Venkatesh Dorai