Tuesday, May 7, 2019

What is Spring and Spring Boot?


Spring is a open source and lightweight modular framework which was created by Rod Johnson in 2003. Spring framework can be used for all layer implementations for a real time application.Because of the POJO model Spring made J2EE easier as well as make it lightweight. Simplicity, loose coupling , testability makes the demand of the spring high. Some of the advantages are testing the applications developed with Spring is easy, It utilized some of the well known technologies such as ORM framework, logging framework, spring can easily scale up or down because of the consistence transaction management interface. Also some of the disadvantages can be summarized as its complex, it is difficult to learn, requires lots of XML.
Spring boot is a framework to develop new Spring application and to simplify bootstrapping and also it is easy to do it with less configurations. It provides default code and annotation configuration to quick start the new projects as well as third party projects.There are set of build files that can be used to add the necessary dependencies and auto configuration but no requirement for XML configuration. Another feature can be considered that it does not need to deploy WAR files since it embed Tomcat, Jetty directly .
Advantages of Spring boot
  • Its simple to develop Spring based applications with Java or Groovy.
  • Spring Boot provides HTTP endpoints to access application internals such as health status, detailed metrics, application .
  • Spring Boot provides lots of plugins to develop with embedded and in-memory databases very easily as well as using build tools like Maven and Gradle.
  • It increases productivity by reducing the development time.
Disadvantages of Spring Boot
  • Its difficult to customize the logging.
  • The deployment binary size will increase due to the unused dependencies.