Advantage of Spring Boot [closed]

Solution 1:

Quoting from the Spring Boot Page, it has following features:

  1. Create stand-alone Spring applications
  2. Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files)
  3. Provide opinionated 'starter' POMs to simplify your Maven configuration
  4. Automatically configure Spring whenever possible
  5. Provide production-ready features such as metrics, health checks and externalized configuration
  6. Absolutely no code generation and no requirement for XML configuration

Solution 2:

The big advantage is out of the box configuration based on what it finds and server embedded (you can make a jar run it and go to localhost:8080 to see the result) beside that it has metrics, health checks, externalised configuration, etc.

In my opinion is the perfect tool for building cloud microservices.

Solution 3:

Bootstrapping with defaults included in the configuration / jar-dependencies, is the real advantage of Spring boot! Get the things done quickly!

Its just another project from Spring framework, where things look simplified, with strong support for Security, Data, Social etc all features you want for your application.

If you prefer annotations over XML configuration like me you might use @Configuration for configuration, @ComponentScan for Dependency Injection, and @EnableAutoConfiguration to tell spring to guess the defaults and work along. The @SpringBootApplication annotation is equivalent to using @Configuration, @EnableAutoConfiguration, and @ComponentScan with their default attributes. So things further simplified, with a single annotation doing the work of 3.

Solution 4:

It's real easy to get something going from nothing, with loads of useful defaults.

Not so easy if you want to migrate some existing project which will most likely have developed a lot of quirks that are going to be difficult to migrate.