A quick introduction to spring boot
Tags: springboot, java, spring, dev
Published: 2019-04-19 10:57:13

---
title: A quick introduction to spring boot
published: true
description: 
tags: #Spring_boot #java #spring #dev
---
<a href="https://java2blog.com/introduction-to-spring-framework/" target="_blank" rel="noopener">Spring framework</a> is very popular frameworks for developing various web and enterprise application. Spring has developed various projects over time and Spring Boot is one of them.

In this tutorial, we will learn Spring boot tutorial with various examples.

Before learning Spring Boot application, you must have some knowledge about <a href="http://www.java2blog.com/2012/08/spring-hello-world-example-in-eclipse.html">XML</a> and <a href="http://www.java2blog.com/2016/02/spring-java-based-configuration-example.html">Java Configuration</a> in Spring framework.
<h2>What is Spring Boot?</h2>
Spring Boot is a way by which you can bootstrap or quickly create any Spring application.

Here is the official definition of Spring Boot.

Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run".

Spring Boot helps you create any Spring application in no time. It provides default configurations which help you to avoid a lot of boilerplate code which is painful to maintain.
<h2>Why Spring Boot?</h2>
Let's say you want to create <a href="http://www.java2blog.com/2016/08/spring-mvc-hibernate-mysql-crud-example.html" target="_blank">Spring MVC Hibernate MySQL project</a>.When you are working on this project, you might be confused with a lot of dependencies it requires.You might get confused with versions too.You need to configure DataSource, EntitymanagerFactory, TransactionManager etc beans. Wouldn’t it be good if Spring can do it for us automatically?

yes, You guess it right. Spring Boot will take care of all above configuration which is painful to do when you want to create Spring application real quick. I have also created <a href="http://www.java2blog.com/2017/05/spring-boot-hibernate-example.html" target="_blank">Spring boot Hibernate MySQL project</a>.When you compare code between above two examples, you will get to know how amazingly Spring Boot has reduced almost half of the code.

Spring Boot will take care of all above configuration which is painful to do when you want to create Spring application real quick.

As I said before, Spring boot provides a lot of default configuration, hence Spring Boot will help you in creating Spring applications faster. Spring boot provides a lot of <a href="https://java2blog.com/spring-boot-starters/">starter</a> projects to help you create a different type of Spring application.Once you go through examples, you will understand more about starter projects.
<img class="aligncenter wp-image-6105 size-large" src="https://java2blog.com/wp-content/uploads/2017/07/SpringBoot1-780x1024.jpg" alt="Spring boot" width="530" height="696" />
<h2>Advantages of Spring Boot</h2>
<ul>
 	<li>It provides a lot of default configurations which help you to create Spring application faster.</li>
 	<li>It comes with embedded tomcat or jetty server, so you don't have to deploy jar.</li>
 	<li>It reduces development code by avoiding a lot of boilerplate code.</li>
 	<li>It increases productivity as you can create Spring application quickly.</li>
 	<li>It provides a lot of starter project for easy maven integration.You don't have to worry about version mismatch.</li>
 	<li>You can quickly create using sample project using <a href="https://start.spring.io/">spring boot initializer</a></li>
</ul>
<h2>Spring Boot tutorial examples</h2>
I have created a lot of Spring Boot examples. here is list of Spring boot tutorials.
<h3><a href="http://www.java2blog.com/2017/04/spring-boot-web-application-example.html" target="_blank">Spring boot web application example</a></h3>
You can create a simple hello world example using JSP as view. It will also help you understand how to override default configuration.
<h3><a href="http://www.java2blog.com/2017/05/spring-boot-hello-world-example-thymeleaf.html">Spring boot Hello world example using thymeleaf</a></h3>
You can create a simple hello world example using thymeleaf as view.
<h3><a href="http://www.java2blog.com/2017/05/spring-boot-hello-world-standalone-application.html">Spring boot standalone application</a></h3>
All about created projects are web project. In this example, we will see how to create simple standalone non web project using Spring Boot.
<h3><a href="http://www.java2blog.com/2017/04/create-restful-web-services-using-spring-boot.html">Spring boot Restful web service example</a></h3>
It is very easy to create rest web service using Spring boot rather than creating using convention way in Spring MVC.
<h3><a href="http://www.java2blog.com/2017/05/spring-boot-hibernate-example.html">Spring Boot hibernate example</a></h3>
This example will show you how to integrate Hibernate with SpringBoot. You don't have to worry about configuring DataSource, EntitymanagerFactory, TransactionManager, Spring boot will do it for you. You just need to provide required configuration in properties file.
<h3><a href="http://www.java2blog.com/2017/05/spring-boot-angularjs-example.html">Spring boot AngularJS example</a></h3>
This example will show you how to integrate AngularJS with Spring Boot.
<h3><a href="http://www.java2blog.com/2017/05/spring-boot-activemq-example.html">Spring Boot ActiveMQ example</a></h3>
This example will help you to integrate ActiveMQ with Spring Boot.
<h3><a href="http://www.java2blog.com/2017/05/spring-boot-spring-security-example.html">Spring Boot Security example</a></h3>
This example will help you to integrate Spring Security with SpringBoot.
<h3><a href="http://www.java2blog.com/2017/05/print-beans-loaded-spring-boot.html">How to find/print all bean loaded by Spring Boot</a></h3>
As you, Spring Boot provides a lot of default configuration. You may want to get all the beans loaded by Spring Boot behind the scene. This example will help you find all beans loaded by Spring Boot.
<h3><a href="https://java2blog.com/difference-spring-spring-boot/" target="_blank">Difference between Spring and Spring Boot</a></h3>
<h3><a href="https://java2blog.com/spring-boot-interview-questions/" target="_blank">Spring boot interview questions</a></h3>
That's all about <a href="https://java2blog.com/spring-boot-tutorial/" target="_blank">Spring Boot tutorial</a>. I will keep adding more example to this Spring Boot tutorial.