|
| 1 | +<div class="font-family-page"> |
| 2 | +<div class="separator" style="clear: both; text-align: center;"> |
| 3 | +<a href="https://4.bp.blogspot.com/-ou-a_Aa1t7A/W6IhNc3Q0gI/AAAAAAAAD6Y/pwh44arKiuM_NBqB1H7Pz4-7QhUxAgZkACLcBGAs/s1600/spring-boot-logo.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="315" data-original-width="600" src="https://4.bp.blogspot.com/-ou-a_Aa1t7A/W6IhNc3Q0gI/AAAAAAAAD6Y/pwh44arKiuM_NBqB1H7Pz4-7QhUxAgZkACLcBGAs/s1600/spring-boot-logo.png"></a></div> |
| 4 | +<div style="text-align: left;"> |
| 5 | +This is beginners to expert Spring Boot tutorial. We have used the latest release of <i>Spring Boot 2+</i> in all examples. This tutorial gives you all the possible Spring boot features that are required to build a Spring-based enterprise J2EE web applications or RESTful APIs. Spring Boot uses a completely new development model to make Java Development very easy by avoiding some tedious development steps and boilerplate code and configuration.</div> |
| 6 | +<h2 style="text-align: left;"> |
| 7 | +What is the Spring Boot?</h2> |
| 8 | +<div style="text-align: left;"> |
| 9 | +Spring Boot is a brand new framework from the team at Pivotal, designed to simplify the bootstrapping and development of a new Spring application. The framework takes an opinionated approach to configuration, freeing developers from the need to define a boilerplate configuration. It provides defaults for code and annotation configuration to quick start new Spring projects within no time.<br> |
| 10 | +<blockquote class="tr_bq"> |
| 11 | +Spring Boot 2.0 requires Java 8 or later. Java 6 and 7 are no longer supported. It also requires Spring Framework 5.0</blockquote> |
| 12 | +</div> |
| 13 | +<h2 style="text-align: left;"> |
| 14 | +Spring Boot Features</h2> |
| 15 | +<ol style="text-align: left;"> |
| 16 | +<li>Create stand-alone Spring applications</li> |
| 17 | +<li>Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files)</li> |
| 18 | +<li>Provide opinionated 'starter' dependencies to simplify your build configuration</li> |
| 19 | +<li>Automatically configure Spring and 3rd party libraries whenever possible</li> |
| 20 | +<li>Provide production-ready features such as metrics, health checks, and externalized configuration</li> |
| 21 | +<li>Absolutely no code generation and no requirement for XML configuration</li> |
| 22 | +</ol> |
| 23 | +<h2 style="text-align: left;"> |
| 24 | +Spring Boot Tutorial</h2> |
| 25 | +<h3 style="text-align: left;"> |
| 26 | +Spring Boot Basics</h3> |
| 27 | +<div> |
| 28 | +<div style="text-align: left;"> |
| 29 | +>> <a href="http://www.javaguides.net/2018/09/overview-of-spring-boot-starter-parent.html" target="_blank">Overview of Spring Boot Starter Parent</a></div> |
| 30 | +<div style="text-align: left;"> |
| 31 | +>> <a href="http://www.javaguides.net/2018/09/important-spring-boot-starters-with-examples.html" target="_blank">Important Spring Boot Starters with Examples</a><br> |
| 32 | +<div style="text-align: left;"> |
| 33 | +>> <a href="http://www.javaguides.net/2018/09/spring-boot-how-to-change-port-and-context-path.html" target="_blank">Spring Boot How to Change Port and Context Path</a></div> |
| 34 | +<div style="text-align: left;"> |
| 35 | +>> <a href="http://www.javaguides.net/2018/09/spring-boot-2-deploy-war-file-to-external-tomcat.html" target="_blank">Spring Boot 2 Deploy WAR file to External Tomcat</a><br> |
| 36 | +>> <a href="http://www.javaguides.net/2018/09/different-ways-of-running-spring-boot-appilcation.html" target="_blank">Different Ways of Running Spring Boot Application</a></div> |
| 37 | +</div> |
| 38 | +</div> |
| 39 | +<h3 style="text-align: left;"> |
| 40 | +Spring Boot REST API Development</h3> |
| 41 | +<div> |
| 42 | +>> <a href="http://www.javaguides.net/2018/09/spring-boot-2-hibernate-5-mysql-crud-rest-api-tutorial.html" target="_blank">Spring Boot 2 Hibernate 5 MySQL CRUD REST API Tutorial</a></div> |
| 43 | +<div> |
| 44 | +>> <a href="http://www.javaguides.net/2018/09/spring-boot-2-jpa-mysql-crud-example.html" target="_blank">Spring Boot 2 JPA MySQL CRUD Example</a></div> |
| 45 | +<div> |
| 46 | +>> <a href="http://www.javaguides.net/2018/09/spring-boot-crud-rest-apis-validation-example.html" target="_blank">Spring Boot CRUD REST APIs Validation Example</a></div> |
| 47 | +<div> |
| 48 | +>> <a href="http://www.javaguides.net/2018/09/spring-data-jpa-auditing-with-spring-boot2-and-mysql-example.html" target="_blank">Spring Data JPA Auditing with Spring Boot 2 and MySQL Example</a></div> |
| 49 | +<div> |
| 50 | +>> <a href="http://www.javaguides.net/2018/09/spring-boot-2-exception-handling-for-rest-apis.html" target="_blank">Spring Boot 2 Exception Handling for REST APIs</a></div> |
| 51 | +<div> |
| 52 | +>> <a href="http://www.javaguides.net/2018/09/spring-boot-2-logging-slf4j-logback-and-log4j-example.html" target="_blank">Spring Boot 2 Logging SLF4j Logback and LOG4j2 Example</a><br> |
| 53 | +>> <a href="http://www.javaguides.net/2018/09/spring-boot-2-jersey-rest-jpa-hibernate-5-crud-rest-apis-example.html" target="_blank">Spring Boot 2 + Jersey REST + JPA + Hibernate 5 CRUD REST APIs Example</a></div> |
| 54 | +<h3 style="text-align: left;"> |
| 55 | +Spring Boot Web Application Development</h3> |
| 56 | +<div> |
| 57 | +<div style="text-align: left;"> |
| 58 | +>> <a href="http://www.javaguides.net/2018/09/spring-mvc-using-spring-boot2-jsp-jpa-hibernate5-mysql-example.html" target="_blank">Spring MVC + Spring Boot2 + JSP + JPA + Hibernate 5 + MySQL Example</a></div> |
| 59 | +<div style="text-align: left;"> |
| 60 | +>> <a href="http://www.javaguides.net/2018/09/spring-boot2-mvc-web-application-thymeleaf-jpa-mysql-example.html" target="_blank">Spring Boot 2 MVC Web Application Thymeleaf JPA MySQL Example</a><br> |
| 61 | +>> <a href="http://www.javaguides.net/2018/09/spring-boot-jpa-multiple-data-sources-example.html" target="_blank">Spring Boot JPA Multiple Data Sources Example</a><br> |
| 62 | +<h3 style="text-align: left;"> |
| 63 | +Spring Boot with Spring Security</h3> |
| 64 | +>> <a href="http://www.javaguides.net/2018/09/spring-boot-spring-mvc-role-based-spring-security-jpa-thymeleaf-mysql-tutorial.html" target="_blank">Spring Boot + Spring MVC + Role Based Spring Security + JPA + Thymeleaf + MySQL Tutorial</a></div> |
| 65 | +</div> |
| 66 | +<h3 style="text-align: left;"> |
| 67 | +Spring Boot Configuration</h3> |
| 68 | +<div> |
| 69 | +>> <a href="http://www.javaguides.net/2018/09/spring-boot-java-based-configuration-example.html" target="_blank">Spring Boot Java Based Configuration Example</a><br> |
| 70 | +>> <a href="http://www.javaguides.net/2018/09/spring-boot-xml-configuration-example.html" target="_blank">Spring Boot XML Configuration Example</a><br> |
| 71 | +>> <a href="https://www.baeldung.com/spring-boot-migration" target="_blank">Migrating from Spring to Spring Boot</a></div> |
| 72 | +<div style="text-align: left;"> |
| 73 | +<h3 style="text-align: left;"> |
| 74 | +Spring Boot Testing</h3> |
| 75 | +</div> |
| 76 | +<div style="text-align: left;"> |
| 77 | +>> <a href="http://www.javaguides.net/2018/09/spring-data-jpa-repository-testing-using-spring-boot-datajpatest.html" target="_blank">Spring Data JPA Repository Testing using Spring Boot @DataJpaTest</a></div> |
| 78 | +<div style="text-align: left;"> |
| 79 | +>> <a href="http://www.javaguides.net/2018/09/spring-boot-2-rest-apis-integration-testing.html" target="_blank">Spring Boot 2 REST APIs Integration Testing</a></div> |
| 80 | +<div style="text-align: left;"> |
| 81 | +>> <a href="http://www.javaguides.net/2018/09/spring-boot-2-with-junit-5-testing.html" target="_blank">Spring Boot 2 with JUnit 5 Testing Example</a><br> |
| 82 | +<h3 style="text-align: left;"> |
| 83 | +Spring Boot Annotations</h3> |
| 84 | +</div> |
| 85 | +<div style="text-align: left;"> |
| 86 | +<div style="text-align: left;"> |
| 87 | +>> <a href="http://www.javaguides.net/2018/09/spring-boot-enableautoconfiguration-annotation-with-example.html" target="_blank">Spring Boot @EnableAutoConfiguration Annotation with Example</a></div> |
| 88 | +<div style="text-align: left;"> |
| 89 | +>> <a href="http://www.javaguides.net/2018/09/spring-boot-springbootapplication-annotation-with-example.html" target="_blank">Spring Boot @SpringBootApplication Annotation with Example</a></div> |
| 90 | +</div> |
| 91 | +<div style="text-align: left;"> |
| 92 | +</div> |
| 93 | +<div style="text-align: left;"> |
| 94 | +<br></div> |
| 95 | +<div style="text-align: left;"> |
| 96 | +After reading above all Spring Boot articles, we can summarize the advantages of Spring boot as follows.</div> |
| 97 | +<h2 style="text-align: left;"> |
| 98 | +Advantages of Spring Boot</h2> |
| 99 | +<ul style="text-align: left;"> |
| 100 | +<li>It is very easy to develop Spring Based applications with Java.</li> |
| 101 | +<li>It reduces lots of development time and increases productivity.</li> |
| 102 | +<li>It avoids writing lots of boilerplate Code, Annotations and XML Configuration.</li> |
| 103 | +<li>It is very easy to integrate Spring Boot Application with its Spring Ecosystem like Spring JDBC, Spring ORM, Spring Data, Spring Security etc.</li> |
| 104 | +<li>It follows “Opinionated Defaults Configuration” Approach to reducing Developer effort</li> |
| 105 | +<li>It provides Embedded HTTP servers like Tomcat, Jetty etc. to develop and test our web applications very easily.</li> |
| 106 | +<li>It provides CLI (Command Line Interface) tool to develop and test Spring Boot(Java or Groovy) Applications from command prompt very easily and quickly.</li> |
| 107 | +<li>It provides lots of plugins to develop and test Spring Boot Applications very easily using Build Tools like Maven and Gradle</li> |
| 108 | +<li>It provides lots of plugins to work with embedded and in-memory Databases very easily.</li> |
| 109 | +</ul> |
| 110 | +<h2 style="text-align: left;"> |
| 111 | +References</h2> |
| 112 | +<div> |
| 113 | +<ul style="text-align: left;"> |
| 114 | +<li><a href="https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/html/index.html" target="_blank">Spring Boot Reference Documentation</a></li> |
| 115 | +<li><a href="https://start.spring.io/" target="_blank">https://start.spring.io/</a></li> |
| 116 | +<li><a href="https://spring.io/projects/spring-boot" target="_blank">https://spring.io/projects/spring-boot</a></li> |
| 117 | +</ul> |
| 118 | +</div> |
| 119 | +</div> |
| 120 | +</div> |
0 commit comments