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

  • Kapil Sharma Show, Comedy Show in Hindi
    Kapil Sharma Show, Comedy Show in Hindi Biography
  • What is Verb
    What is Verb? Types of Verbs and Examples Grammar
  • Pythagorean Theorem in Hindi, Definition
    Pythagorean Theorem in Hindi, Definition, Formula, Proof पाइथागोरस थ्योरम क्या है जानिए हिंदी में? Science
  • Newton's laws of Motion, State and Explained, Formula
    Newton’s laws of Motion, State and Explained, Formula Science
  • Sawan ka Mahina : सावन का महीना का महत्व, भगवान शिव की पूजा
    Sawan ka Mahina : सावन का महीना का महत्व, भगवान शिव की पूजा Festival
  • Maharishi Valmiki in Hindi, Biography, Dacoit Ratnakar, Jayanti
    Maharishi Valmiki in Hindi, Biography, Dacoit Ratnakar, Jayanti Spiritual
  • जन्माष्टमी व्रत पूजा विस्तार से | दही हांडी | Krishna Janmashtami Puja
    जन्माष्टमी व्रत पूजा विस्तार से, दही हांडी: Krishna Janmashtami Puja Festival
  • Kishkindha Kand in Hindi | Ram meets Hanuman | किष्किंधा कांड
    Kishkindha Kand in Hindi | Ram meets Hanuman | किष्किंधा कांड Spiritual

Spring Boot Tutorial

Posted on October 15, 2021October 16, 2021 By GeekCer Education 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
Mockito unit testing spring boot Mockito Framework Tutorial for Unit testing | Mockito unit testing spring boot Important
Top Spring Boot Annotations Top Spring Boot Annotations Spring Boot
HTTP status codes List | Response Status Code Glossary HTTP status codes List | Response Status Code Glossary Important
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 *

  • National Farmers Day in Hindi | राष्ट्रीय किसान दिवस पर निबंध | चौधरी चरण सिंह जयंती
  • Human rights day in Hindi: 10 दिसंबर ह्यूमन राइट्स डे
  • Unicef day is celebrated on December 11 | Speech on unicef day
  • Indian Navy Day: जल सेना दिवस कब और क्यों मनाया जाता है?
  • P V Sindhu Biography in Hindi, Badminton, State, Caste पी. वी. सिंधु जीवन परिचय, कहानी, राज्य, जाति
  • Draupadi Murmu Biography In Hindi | द्रौपदी मुर्मू की जीवनी
  • TCP/IP Model, Full Form, Layers and their Functions
    TCP/IP Model, Full Form, Layers and their Functions Networking
  • Network kya hai (नेटवर्क क्या है)
    Network kya hai (नेटवर्क क्या है) Networking
  • OSI Model | 7 Layers of OSI Model in Computer network
    OSI Model | 7 Layers of OSI Model in Computer network, Functions Networking
  • Difference between TCP and UDP
    Difference between TCP and UDP | TCP vs UDP examples Differences
  • Difference between Internet and Intranet
    Difference between Internet and Intranet Differences
  • Similarities and difference between OSI and TCP/IP model
    OSI vs TCP/IP Model, Similarities and difference between OSI and TCP/IP model Networking
  • IPv4 Vs IPv6 | Difference between IPv4 and IPv6
    IPv4 Vs IPv6 | Difference between IPv4 and IPv6 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