Spring Boot
This post we are going to learn about Spring Boot advantages and disadvantages.
Spring Boot uses Spring MVC framework and it is auto configured and ready to use, once you import the spring-boot-starter-web.jar and Tomcat embedded spring-boot-starter-tomcat.jar.
Advantages:
- The Spring Boot project will be very simple to develop Java based enterprise web application using MVC architecture.
- The Spring Boot configuration also very simple, you can use a properties file.
- Spring Boot provides a wide range of features like embedded server, Tomcat, Jetty, Undertow and most of the things are auto configured and development will be faster.
- Create a standalone application quick and easy.
- Externalized file based configuration.
- Spring Boot will provides production ready features like health checks, metrics and externalized configuration.
- Spring Boot provides opinionated ‘starter’ Project Object Models (POMs) to simplify your Maven configuration.
- No need to deploy WAR files and no XML configuration and absolutely no code generation.
Disadvantages:
- Spring Boot will write up its own code, less/lost leaning.
- Spring Boot will bring lots of jars and other files, if you are not using those, you may end up removing unused jars and files.
- Spring Boot will bring own annotation files with numbers and auto generated strings, which we have to learn later.