Spring & Spring Boot what is that ๐Ÿค”?

ยท

3 min read

Last weekend I learnt about Spring and Spring Boot. Well, I was completely new to this and found it quite interesting. Here I have tried to give a small glimpse of what Spring and Spring Boot are and how both of them are different. I have also shared some of the resources that I referred to.

So let's start.......

First, let us know what is Spring and why it is useful.

  1. Spring

    So Spring came in around 2002 and it became pretty popular as soon as it came, the reason being it solved some of the important problems that the programmers were facing at that time.

    The main factor that makes the Spring framework very powerful and useful is the Dependency Injection or Inversion of Control concept which it follows helps the programmer create Java Enterprise applications. This concept helps achieve the theory of loose coupling.

    Loose Coupling is basically when the two classes are not dependent on each other i.e. any change in one class does not affect the other class.

    And not only that it also supports all other major frameworks which are being used in Java like Struts, Hibernate, EJB etc. Due to this, it can also be said that it is primarily an ecosystem. Also, Spring is quite a lightweight framework.

    Now let's know a little bit about Spring Boot.

  2. Spring Boot

    Is Spring Boot completely different from Spring?

    The answer is NO. Spring Boot is a tool that helps us to create Spring-based Applications which we can run easily.

    Spring Boot tries to solve some of the problems the programmers face while using the Spring framework. The most known problem that most programmers face while working using the Spring framework is

    THE CONFIGURATIONS.....

    A lot of configurations are required to get to the point where we can start running the Spring application. Spring Boot comes with a basic startup project which can directly run over your machine without any configurations. It follows some of the preconceived ideas which makes it easier for the programmer to start with but also steals the ability to completely customise everything.

    It gives us a standalone application as Spring Boot comes with a Tomcat/Jetty server using which we can run our Spring Boot application over it without the need for any other external server.

    Below are some of the resources I referred to get some knowledge about it.

  3. Resources

    Java Brains Playlist on Spring Boot: Link

    Spring Boot Documentation: Link

    Spring Framework JavaBrains: Link

Like or comment to share your views about this article. Also, do share if you have referred to some other resources which you found to be useful. It would help me and others as well.

ย