How can we understand the framework of spring boot?

Spring boot

Hello my dear, today in this article. I’m 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 development. 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.

What is spring boot?

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’s 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’s where these people they came up with a concept of POJOs where you can achieve the same features with the help of POJOs 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:

  • POJO
  • Dependency injection
  • MVC
  • REST
  • Security
  • Batch
  • Data
  • AOP

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.

Spring boot framework

Why it is so important?

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’re working on the enterprise application you need to add a lot of configuration or you have to convey a lot of stuff and that’s what the problem starts you know because if you’re 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’t want to spend much time in the configuration I’m 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’s where these people who created spring framework they thought okay why don’t we create something whereas a developer they will focus more on the convention and that well spring-boot come to the picture.

What does spring boot do?

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’t 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’s 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’t 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’t 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.

Why did it come?

Now, there is one more thing you know. Let’s 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’s 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’t have to actually do all these things by yourself. It’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’ll be having tomcat inside a java file that’s why that’s 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.

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’d 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’t 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’s say if you want to do configuration maybe you want to modify qualification maybe you wanted to some manual configuration it is possible that’s 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’s 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.

guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x