-2

What useful facilities does Spring Boot framework have, and which of these are widely applicable in practice?

Matthew Moisen
  • 16,701
  • 27
  • 128
  • 231
Arch
  • 517
  • 2
  • 7
  • 17

2 Answers2

2

Two best things about Spring Boot are

  • It's pure Java. You can run it without XML
  • Built-in tomcat app server. You can run it without setting up an app server

So it's both correct and simple to use now. I recommend trying one of the many github examples, the one I want to recommend is https://spring.io/guides/gs/rest-service/ - just download the files and you can run it directly with gradle.

Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
2

The main points are the following (my opinion, which would imply that this question should be closed):

  • spring-boot is the java answer to microservices : why-spring-is-winning-the-microservices-game
  • somewhat encourages the 12-factors
  • you can have a simple working example with ~ 10 lines of code.
  • you can launch the app from a jar (with an embedded container) or deployed as a war, with the same spring configuration. Configure once, deploy/run anywhere :)
  • spring-boot autoconfigures many things for you: the spring configuration is much simpler
  • debugging the application is as simple as executing a main method
  • It's fun
  • many great spring projects integrate nicely with sring-boot: spring-cloud, spring-data...
  • Another SO answer: Advantage of Spring Boot

What Spring says:

Spring Boot aims to make it easy to create Spring-powered, production-grade applications and services with minimum fuss. It takes an opinionated view of the Spring platform so that new and existing users can quickly get to the bits they need.

...

The primary goals of Spring Boot are:

  • To provide a radically faster and widely accessible ‘getting started’ experience for all Spring development
  • To be opinionated out of the box, but get out of the way quickly as requirements start to diverge from the defaults
  • To provide a range of non-functional features that are common to large classes of projects (e.g. embedded servers, security, metrics, health checks, externalized configuration)
Community
  • 1
  • 1
alexbt
  • 16,415
  • 6
  • 78
  • 87