{"id":2084,"date":"2022-02-04T11:42:43","date_gmt":"2022-02-04T11:42:43","guid":{"rendered":"https:\/\/gurukulgalaxy.com\/blog\/?p=2084"},"modified":"2023-10-08T07:28:10","modified_gmt":"2023-10-08T07:28:10","slug":"how-can-we-understand-the-framework-of-spring-boot","status":"publish","type":"post","link":"https:\/\/gurukulgalaxy.com\/blog\/how-can-we-understand-the-framework-of-spring-boot\/","title":{"rendered":"How can we understand the framework of spring boot?"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/gurukulgalaxy.com\/blog\/wp-content\/uploads\/2022\/02\/Spring-BOOT-Interview-questions-1.jpg\" alt=\"\" class=\"wp-image-2085\" width=\"750\" height=\"416\" srcset=\"https:\/\/gurukulgalaxy.com\/blog\/wp-content\/uploads\/2022\/02\/Spring-BOOT-Interview-questions-1.jpg 900w, https:\/\/gurukulgalaxy.com\/blog\/wp-content\/uploads\/2022\/02\/Spring-BOOT-Interview-questions-1-300x167.jpg 300w, https:\/\/gurukulgalaxy.com\/blog\/wp-content\/uploads\/2022\/02\/Spring-BOOT-Interview-questions-1-768x427.jpg 768w, https:\/\/gurukulgalaxy.com\/blog\/wp-content\/uploads\/2022\/02\/Spring-BOOT-Interview-questions-1-480x267.jpg 480w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><figcaption><strong><em>Spring boot<\/em><\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<p>Hello my dear, today in this article. I\u2019m going to deliver a thought in the context of spring boot. What is about the framework and the concept behind the complete ideology on this matter? You know so many enhancing is coming in the IT infrastructure and their sectors. So, spring boot is the marvelous stuff that we are introducing in the IT markets and for software <strong><em><a href=\"https:\/\/www.devopsschool.com\/\">development<\/a>.<\/em><\/strong> In this topic, we are covering all the beneficial points regarding the spring boot and its framework. If you will read then you will get every possibility That might be happening with the spring boot and about their features and importance.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_81 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/gurukulgalaxy.com\/blog\/how-can-we-understand-the-framework-of-spring-boot\/#What_is_spring_boot\" >What is spring boot?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/gurukulgalaxy.com\/blog\/how-can-we-understand-the-framework-of-spring-boot\/#Why_it_is_so_important\" >Why it is so important?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/gurukulgalaxy.com\/blog\/how-can-we-understand-the-framework-of-spring-boot\/#What_does_spring_boot_do\" >What does spring boot do?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/gurukulgalaxy.com\/blog\/how-can-we-understand-the-framework-of-spring-boot\/#Why_did_it_come\" >Why did it come?<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/gurukulgalaxy.com\/blog\/how-can-we-understand-the-framework-of-spring-boot\/#Related_video\" >Related video:<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"what-is-spring-boot\"><span class=\"ez-toc-section\" id=\"What_is_spring_boot\"><\/span>What is spring boot?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Before going for spring boot. First, you will try to understand what the spring framework is and why it is so famous? Now, to understand, let\u2019s go to the year 2000 in that time if you want to create a project in Java for the enterprise you will be using a lot of Java EE features and one of them is EJB now each of you was quite famous and it was one of the best technology available at that point and you can actually run of features right like messaging then lookup for the entities the only problem is you know it becomes difficult to manage them and then, of course, you are working with entities so, they are heavy and that\u2019s where these people they came up with a concept of <strong><em>POJOs<\/em><\/strong> where you can achieve the same features with the help of <strong><em>POJOs<\/em><\/strong> and they have included that in spring framework. Now, the spring framework provides you the features of working with POJOs it provides your feature of dependency injection and we can work with an AOP so, there are so many features provided by the spring framework:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong><em>POJO<\/em><\/strong><\/li><li><strong><em>Dependency injection<\/em><\/strong><\/li><li><strong><em>MVC<\/em><\/strong><\/li><li><strong><em>REST<\/em><\/strong><\/li><li><strong><em>Security<\/em><\/strong><\/li><li><strong><em>Batch<\/em><\/strong><\/li><li><strong><em>Data<\/em><\/strong><\/li><li><strong><em>AOP<\/em><\/strong><\/li><\/ul>\n\n\n\n<p>So, it really happens a framework where you can achieve any business purpose and the best part of spring framework. It may integrate with other frameworks as well as hibernate and struts.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"569\" src=\"https:\/\/gurukulgalaxy.com\/blog\/wp-content\/uploads\/2022\/02\/Spring-Ecosystem-1024x569.png\" alt=\"\" class=\"wp-image-2087\" srcset=\"https:\/\/gurukulgalaxy.com\/blog\/wp-content\/uploads\/2022\/02\/Spring-Ecosystem-1024x569.png 1024w, https:\/\/gurukulgalaxy.com\/blog\/wp-content\/uploads\/2022\/02\/Spring-Ecosystem-300x167.png 300w, https:\/\/gurukulgalaxy.com\/blog\/wp-content\/uploads\/2022\/02\/Spring-Ecosystem-768x427.png 768w, https:\/\/gurukulgalaxy.com\/blog\/wp-content\/uploads\/2022\/02\/Spring-Ecosystem-1536x854.png 1536w, https:\/\/gurukulgalaxy.com\/blog\/wp-content\/uploads\/2022\/02\/Spring-Ecosystem-480x267.png 480w, https:\/\/gurukulgalaxy.com\/blog\/wp-content\/uploads\/2022\/02\/Spring-Ecosystem.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption><em><strong>Spring boot framework<\/strong><\/em><\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"why-it-is-so-important\"><span class=\"ez-toc-section\" id=\"Why_it_is_so_important\"><\/span>Why it is so important?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>And now you know why spring is the best framework. Now, there is one problem, let we talk about the spring framework. Definitely, you will be building huge applications and when you say big applications you will be needing some external java files so that one thing you have to work with Java files the second thing is the configuration, and trust me when you\u2019re working on the enterprise application you need to add a lot of configuration or you have to convey a lot of stuff and that\u2019s what the problem starts you know because if you\u2019re working on a project you want to focus more on the convention you are coding by basically not on the configuration because we are developers we don\u2019t want to spend much time in the configuration I\u2019m not saying we can directly Skip all the configuration but we try to focus more on the coding part now the thing is spring is good but we want to focus more on coding and that\u2019s where these people who created spring framework they thought okay why don\u2019t we create something whereas a developer they will focus more on the convention and that well spring-boot come to the picture.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-does-spring-boot-do\"><span class=\"ez-toc-section\" id=\"What_does_spring_boot_do\"><\/span>What does spring boot do?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Now, spring boot is not a replacement for the spring framework because as a developer you are still using the spring framework so, it doesn\u2019t have a framework, you are still using the same framework but in between just to help you we have spring boot because spring boot says hey developer I know you want to work on a project and spring is the best framework the only thing is they said there are some java files which you have to add and there\u2019s a configuration you do. So, spring boot says I will give you dependency and I will give you the configuration awesome. Now the main idea of spring boot is to give you a production-ready application. So, the moment you create a spring boot project you don\u2019t have to do any configuration it is runnable and you can deploy it on the pressure server it will do nothing but it will work you don\u2019t have to do any configuration, and the more features you want you can add some features and for those features, you can do some small configuration but all the basic configurations will be done by spring boot.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/gurukulgalaxy.com\/blog\/wp-content\/uploads\/2022\/02\/spring-boot-web-generate-and-display-qr-code-1024x576.png\" alt=\"\" class=\"wp-image-2088\" width=\"743\" height=\"417\" srcset=\"https:\/\/gurukulgalaxy.com\/blog\/wp-content\/uploads\/2022\/02\/spring-boot-web-generate-and-display-qr-code-1024x576.png 1024w, https:\/\/gurukulgalaxy.com\/blog\/wp-content\/uploads\/2022\/02\/spring-boot-web-generate-and-display-qr-code-300x169.png 300w, https:\/\/gurukulgalaxy.com\/blog\/wp-content\/uploads\/2022\/02\/spring-boot-web-generate-and-display-qr-code-768x432.png 768w, https:\/\/gurukulgalaxy.com\/blog\/wp-content\/uploads\/2022\/02\/spring-boot-web-generate-and-display-qr-code-1536x864.png 1536w, https:\/\/gurukulgalaxy.com\/blog\/wp-content\/uploads\/2022\/02\/spring-boot-web-generate-and-display-qr-code-480x270.png 480w, https:\/\/gurukulgalaxy.com\/blog\/wp-content\/uploads\/2022\/02\/spring-boot-web-generate-and-display-qr-code.png 1920w\" sizes=\"auto, (max-width: 743px) 100vw, 743px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"why-did-it-come\"><span class=\"ez-toc-section\" id=\"Why_did_it_come\"><\/span>Why did it come?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Now, there is one more thing you know. Let\u2019s say we have we are not working on spring boot we are working with a normal spring project and we want to make a web application and if you deploy the application what you will do is of course you need a server, maybe a virtual server or the cloud server and we have a server you need to install a Linux server so that\u2019s done so, we have a physical server then we have a Linux OS and on that OS. Precisely, you will be installing a web server or maybe an app server, it may be tomcat of the Glassfish, and then on that tomcat, we will be deploying the war file which we create for a web application. So, many layers, and nowadays we are moving towards microservices and we want to make it a bit easier for us, and that is why spring boot says hey you don\u2019t have to actually do all these things by yourself. It&#8217;s bringing boot it provides you an embedded server which means the application java files which only create ok we will not be making modifies now we are making a java file and inside the java file will be having tomcat. We\u2019ll be having tomcat inside a java file that\u2019s why that\u2019s an embedded tomcat on the embedded server you can say so, spring boot says your java file will have an embedded tomcat which means you can run your project and on any JVM you basically need a web server there.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/gurukulgalaxy.com\/blog\/wp-content\/uploads\/2022\/02\/6296864620544000.png\" alt=\"\" class=\"wp-image-2092\" width=\"759\" height=\"380\" srcset=\"https:\/\/gurukulgalaxy.com\/blog\/wp-content\/uploads\/2022\/02\/6296864620544000.png 600w, https:\/\/gurukulgalaxy.com\/blog\/wp-content\/uploads\/2022\/02\/6296864620544000-300x150.png 300w, https:\/\/gurukulgalaxy.com\/blog\/wp-content\/uploads\/2022\/02\/6296864620544000-480x240.png 480w\" sizes=\"auto, (max-width: 759px) 100vw, 759px\" \/><\/figure><\/div>\n\n\n\n<p>Now, spring would provide so many features two of my favorite is the first one is starter projects because if you want a project or to make a web application spring boot will say okay because I\u2019d spring boot starter web it will give you a web project and if you want maybe if you want to work with JDBC spring boots says ok don\u2019t worry we have spring start-up a spring boot starter JDBC you can simply use that and it will give you a ready project what about the configuration spring boot also has spring boot auto configuration which will do the confusion for you. So, you can focus on the convention not on the configuration. So, let\u2019s say if you want to do configuration maybe you want to modify qualification maybe you wanted to some manual configuration it is possible that\u2019s just spring boot provides you the XML files and the answer is no spring boot will not generate any XML file for you because there is no XML file then how would you modify if you want to do some quantification and that\u2019s where we have a special file which is application. Properties, you can add the properties which you want there is quite simple. I will predict that this whole practical theory can have help in understanding the concept of spring boots and their working functionalities. If you will read then every concept will be clearly related to this spring boot.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"related-video\"><span class=\"ez-toc-section\" id=\"Related_video\"><\/span>Related video:<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\"  id=\"_ytid_18542\"  width=\"640\" height=\"360\"  data-origwidth=\"640\" data-origheight=\"360\" src=\"https:\/\/www.youtube.com\/embed\/sXY-5cags6I?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  epyt-is-override  no-lazyload\" title=\"YouTube player\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Hello my dear, today in this article. I\u2019m going to deliver a thought in the context of spring boot. What&hellip;<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,89],"tags":[1939,1932,1938,1933,1934,1936,1931,792,333],"class_list":["post-2084","post","type-post","status-publish","format-standard","hentry","category-devops","category-software-installation","tag-enterprise","tag-features","tag-files","tag-framework","tag-importance","tag-java","tag-springboot","tag-application","tag-security"],"_links":{"self":[{"href":"https:\/\/gurukulgalaxy.com\/blog\/wp-json\/wp\/v2\/posts\/2084","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gurukulgalaxy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gurukulgalaxy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gurukulgalaxy.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/gurukulgalaxy.com\/blog\/wp-json\/wp\/v2\/comments?post=2084"}],"version-history":[{"count":2,"href":"https:\/\/gurukulgalaxy.com\/blog\/wp-json\/wp\/v2\/posts\/2084\/revisions"}],"predecessor-version":[{"id":2093,"href":"https:\/\/gurukulgalaxy.com\/blog\/wp-json\/wp\/v2\/posts\/2084\/revisions\/2093"}],"wp:attachment":[{"href":"https:\/\/gurukulgalaxy.com\/blog\/wp-json\/wp\/v2\/media?parent=2084"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gurukulgalaxy.com\/blog\/wp-json\/wp\/v2\/categories?post=2084"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gurukulgalaxy.com\/blog\/wp-json\/wp\/v2\/tags?post=2084"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}