Reasons to consider spring-boot for your next Spring based application!

Spring-boot  provides a quick way to create a Spring based application. There are some very compelling reasons to consider spring-boot for your next project:

Reason 1 : Simpler Dependency management using spring-boot starter projects.

Consider the effort required to start up a CRUD web application using Spring-boot, assuming that the CRUD is implemented using a h2 database with Spring-Data providing the data access abstraction. The maven pom required for such a project is the following:

<?xml version="1.0" encoding="UTF-8"?><project ...     <parent>        <groupId>org.springframework.boot</groupId>        <artifactId>spring-boot-starter-parent</artifactId>        <version>0.5.0.BUILD-SNAPSHOT</version>    </parent>    <dependencies>        <dependency>            <groupId>org.springframework.boot</groupId>            <artifactId>spring-boot-starter-web</artifactId>        </dependency>        <dependency>            <groupId>org.springframework.boot</groupId>            <artifactId>spring-boot-starter-data-jpa</artifactId>        </dependency>  <dependency>   <groupId>org.thymeleaf</groupId>   <artifactId>thymeleaf-spring3</artifactId>  </dependency>  <dependency>   <groupId>org.springframework.boot</groupId>   <artifactId>spring-boot-starter-jetty</artifactId>  </dependency>    <dependency>   <groupId>org.hsqldb</groupId>   <artifactId>hsqldb</artifactId>   <scope>runtime</scope>  </dependency>    <dependency>   <groupId>junit</groupId>   <artifactId>junit</artifactId>   <scope>test</scope>  </dependency>  <dependency>   <groupId>org.hamcrest</groupId>   <artifactId>hamcrest-library</artifactId>   <scope>test</scope>  </dependency>          </dependencies>    <build>        <plugins>            <plugin>                <groupId>org.springframework.boot</groupId>                <artifactId>spring-boot-maven-plugin</artifactId>            </plugin>                   </plugins>    </build></project>

Source : http://www.javacodegeeks.com/2013/09/reasons-to-consider-spring-boot-for-your-next-spring-based-application.html

Back to Top