Skip to content
  • Facebook
GeekCer Logo

GeekCer

The geek's Coding education and Review centre

  • Home
  • Tutorials
    • Java
    • Servlet
    • JSP
    • Python
    • C Tutorial
    • Spring
    • Spring Boot
    • MongoDB
    • Hibernate
    • Data Structure
  • General Knowledge
  • Biography
  • Grammar
  • Festival (त्योहार)
  • Interview
  • Differences
  • Important
  • Toggle search form

Home » Spring Boot » Spring Boot Tutorial

  • Different Types of Loans in India, Eligibility, Documents, Benefits
    Different Types of Loans in India, Eligibility, Documents, Benefits Important
  • Apj Abdul Kalam biography in Hindi, Life, Missile Man of India
    Apj Abdul Kalam biography in Hindi, Life, Missile Man of India Biography
  • Storage classes in C with examples (auto, extern, static, register)
    Storage classes in C with examples (auto, extern, register, static) C Language
  • Java Server Pages (JSP)
    Java Server Pages (JSP) JSP
  • Variables in Java
    Variables in Java Java
  • Network kya hai (नेटवर्क क्या है)
    Network kya hai (नेटवर्क क्या है) Networking
  • Vedaant Madhavan Biography in Hindi, Family, School, Age
    Vedaant Madhavan Biography in Hindi, Family, School, Age Biography
  • Difference between Jenkins and TeamCity
    Difference between Jenkins and TeamCity, Maven, Octopus Differences

Spring Boot Tutorial

Posted on October 15, 2021October 16, 2021 By admin No Comments on Spring Boot Tutorial
Spring Boot Tutorial

Spring Boot is essentially a sub-module of Spring that speeds up development and allows us to create applications quickly. Because it automates a lot of configuration. In other words, it automates 80-85% of the configuration process.

Spring noticed that about 80% of developer are repeating the same configuration over and over, taking longer to configure. It provides automatic configuration to solve all this problem. And the remaining part which is 20%, the developer can configure as per the requirement.

Because all settings are generated and setup automatically, you can concentrate on software development. It generates production-ready apps, and all we have to do is just execute them. We don’t need to perform any setup for this.

When using Spring MVC, ORM, and JPA, a lot of configuration is required, and we were responsible for all of it. This is a time-consuming process as well. It provides very simple and quick methods for configuring and accomplishing this.

Table of Contents

  • What does Spring Boot do for a developer?
  • Advantages of Spring Boot
  • Prerequisite
  • Spring Boot Application Configuration
    • Use of application.yml file
    • In spring boot, what is the default Tomcat port?
    • Is it possible to turn off the default web server in a spring boot application?

What does Spring Boot do for a developer?

  • Spring Boot comes with a built-in embedded server and the Spring Framework. It will also setup it internally automatically.
  • It has said that if you follow a convention, It will be setup for you automatically.
  • Spring Boot saves time and effort for developers when it comes to configuration and setup.
  • It looks for dependencies in the class path and then configures them.
  • It comes with a number of features by default. If you wish, you can use it or alter it.

Advantages of Spring Boot

  • It generates a self-contained Spring application that can be launched with just a java-jar.
  • Spring Boot comes with a built-in web server, such as Tomcat, Jetty, or Undertow. It is not necessary to use the war file for this.
  • It comes with a set of default ‘starter’ dependencies that make the build setup easier for the developer.
  • When feasible, it configures Spring and third-party libraries automatically.
  • It comes with a number of extra features, such as project health checks and metrics.

Prerequisite

To create a application, you’ll need to be familiar with the following technologies.

  • Java 1.8 or Java 1.8+
  • Maven or Gradle
  • Spring Framework

You can learn java by going to this page.

Spring Boot Application Configuration

In application.properties or application.yml, Spring Boot allows us to specify the configuration for the entire project.

We can place the application.properties or application.yml files anywhere in the class path of the application.

Use of application.yml file

We can use the application.yml file to alter the default Tomcat port number, pass configuration, logging level information, and other database-related settings.

Spring Boot application.yml file
Use of application.yml file

In spring boot, what is the default Tomcat port?

Tomcat’s default port is 8080. The server.port property in the application.property file can be modified to modify this.

Is it possible to turn off the default web server in a spring boot application?

Yes, we can configure the web application type using application.properties.

                  spring.main.web-application-type=none

In conclusion, I hope you enjoyed learning about Spring Boot, why we should use it, and how it may assist a software developer.

Share this:

  • Click to share on Facebook (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • More
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Pinterest (Opens in new window)

Also Read

Spring Boot

Post navigation

Next Post: Spring Initializr for Spring Boot Project

More Related Articles

Bean Scopes in Spring, Types of Bean Scopes, Examples Bean Scopes in Spring, Types of Bean Scopes, Examples Spring
HTTP status codes List | Response Status Code Glossary HTTP status codes List | Response Status Code Glossary Important
Top Spring Boot Annotations Top Spring Boot Annotations Spring Boot
Spring Initializr for Spring Boot Project Spring Initializr for Spring Boot Project Spring Boot

Related Posts

  • Bean Scopes in Spring, Types of Bean Scopes, Examples
    Bean Scopes in Spring, Types of Bean Scopes, Examples Spring
  • HTTP status codes List | Response Status Code Glossary
    HTTP status codes List | Response Status Code Glossary Important
  • Top Spring Boot Annotations
    Top Spring Boot Annotations Spring Boot
  • Spring Initializr for Spring Boot Project
    Spring Initializr for Spring Boot Project Spring Boot

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Structured Vs Unstructured Data in Hindi | Key Difference
  • Jhansi Ki Rani Lakshmi Bai History, Story, Information in Hindi
  • Elon musk Hindi : एलन मस्क हिंदी में, Autobiography,  Net Worth
  • World Environment Day in Hindi : Objective, Importance, Theme
  • Thomas Edison Biography in Hindi – थॉमस एडिसन जीवनी
  • International Nurses Day in Hindi | नर्स दिवस क्यों मनाते हैं?
  • Fork/Join Framework in Java | RecursiveTask, RecursiveAction
  • DBMS in Hindi | DBMS क्या है? | DBMS की विशेषताएं और प्रकार
  • Different Types of Loans in India, Eligibility, Documents, Benefits
    Different Types of Loans in India, Eligibility, Documents, Benefits Important
  • Apj Abdul Kalam biography in Hindi, Life, Missile Man of India
    Apj Abdul Kalam biography in Hindi, Life, Missile Man of India Biography
  • Storage classes in C with examples (auto, extern, static, register)
    Storage classes in C with examples (auto, extern, register, static) C Language
  • Java Server Pages (JSP)
    Java Server Pages (JSP) JSP
  • Variables in Java
    Variables in Java Java
  • Network kya hai (नेटवर्क क्या है)
    Network kya hai (नेटवर्क क्या है) Networking
  • Vedaant Madhavan Biography in Hindi, Family, School, Age
    Vedaant Madhavan Biography in Hindi, Family, School, Age Biography
  • Difference between Jenkins and TeamCity
    Difference between Jenkins and TeamCity, Maven, Octopus Differences
  • Java Tutorial
  • Servlet Tutorial
  • JSP Tutorial
  • Maven Tutorial
  • HTML Tutorial
  • Programs
  • Hindi/English Grammar
  • Difference Between ... and ...
  • HR Interview
  • Important Articles

Write to Us:
geekcer.code@gmail.com

  • About Us
  • Privacy and Policy
  • Disclaimer
  • Contact Us
  • Sitemap

Copyright © GeekCer 2022 All Rights reserved