0

When and Why do i have to go for Spring Boot ?

  1. Based on my reading till now, it helps me to boot-strap a spring based application pretty fast, I don't have to sit and create lot of xml configurations,deal with multiple dependencies, jars..etc. Rather, spring boot does that job for me and let me focus & write code for my functionality only.

  2. Also, when i run my application (packaged as a JAR) with Spring Boot, it can run with a embedded Tomcat server or can run it with Undertow, rather than being deployed in a regular server container

  3. Provides features like health monitoring, thread monitoring straight away with application developed using the Spring Boot platform (?)

Question # 1 Is my understanding correct ? Question # 2 Are there any other advantages or reasons,for which I should go for Spring Boot ? Question # 3 Are there any other equivalent boot-strapping libraries/frameworks for spring or other similar java technologies ? Question # 4 Is Spring Roo being replaced by Spring Boot ?

Regarding Point#2 - How stable,secure,high performing is with this approach ? Is it applicable only during testing or is that usable during typical Production scenario also ?

yathirigan
  • 5,619
  • 22
  • 66
  • 104
  • I watched a Java Zone 2014 conference video and it showed how Spring Boot enables a developer to kickstart a project up and running without much server scaffolding etc. The demo was quite neat. – Sid Jan 05 '15 at 09:23
  • @Sid thanks, i will look for it. even the articles i read explained on similar lines but, i wanted to confirm my understanding and also see if there are any other points which I might be missing. – yathirigan Jan 05 '15 at 09:33

1 Answers1

2

Question #1: You are correct.

Question #2: You can use the embedded container during development but I think when deploying an enterprise application it seems more flexible to use a dedicated servlet container. Spring Boot allows building a WAR file as well.

Question #3: Yes, provides useful default components for these features.

Regarding Question #4: Pivotal stated in some blog post, that Spring Boot has the same goal as Spring Roo (removing boilerplate work and getting your application up and running faster), but trys to achieve this by other means. It is not a replacement per se but it kind of removes the need for something like Spring Roo.

Kevin Wittek
  • 1,369
  • 9
  • 26
  • is there any relation between Spring-Boot and building Microservices architecture based web application ? – yathirigan Jan 05 '15 at 10:54
  • 1
    No, it simply gets you up and running faster. Spring itself is a good tool for building a web application based on a microservice architecture. – Kevin Wittek Jan 05 '15 at 11:19