SEARCH BY

All

  • All
  • Java8
  • Spring

What is starters in Spring Boot?

Post a Comment
Spring Boot has many advantages like auto configuration, starter templates, embedded web server(tomcat), Actuators to manage and monitor spring application etc...

In this article we will see what is Spring Boot Starter templates.

Spring Boot Starters are very useful to load required Spring libraries or dependencies to the class path, which will manage versions automatically so that version conflict can be avoided to free from run time errors or exceptions.
<!-- This is the dependency to add in spring boot project/application (web application) where as in Spring Framework we need add two dependencies.--> <!-- This dependency will load the required libraries to develop spring web applications --> <!-- this spring boot started will add web and webmvc dependencies of spring framework --> <!-- in the next tab you can see the dependency code for spring framework without spring boot --> 
<dependency>
 <groupId>org.springframework.boot</groupId> 
 <artifactId>spring-boot-starter-web</artifactId>
</dependency>

Following are list of dependencies adding into class path with the web starter of SpringBoot

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-json</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-tomcat</artifactId>
    </dependency>
    <dependency>
        <groupId>org.hibernate.validator</groupId>
        <artifactId>hibernate-validator</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-web</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-webmvc</artifactId>
    </dependency>
</dependencies>

jaya
I love software designing, coding, writing and teaching...

Share this article

Related Posts

Post a Comment

Place your code in <em> </em> tags to send in comments | Do not add hyper links in commnet

Close

Subscribe our newsletter for the latest articles directly into your email inbox