Say for example you want to design a Spring application that deals with database or you want to design a web application in Spring.
To achieve that you would need a lot of configuration in the maven file.
But thanks to the spring starter provided by Spring Boot, which takes care most of the configuration in the Maven File.
As said, the bigger your project is, the tougher is the dependency management.
So as your project grows, you need to add more dependencies in your pom.xml file. And this is exactly where the starter by Spring Boot comes for rescue.
Spring Boot Starter groups a bunch of dependencies in a single dependency.
Sounds tough?
Let us make it simple.
Say for example, you need to create a Web Project in Spring. In that case you need the below dependencies.
<dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>${org.springframework.version}</version> </dependency>
Now, as promised we will be using only one starter dependency called spring-boot-starter-web, that would add all the dependencies need for spring web.
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <version>3.0.0</version> </dependency>
And it would add all the above dependencies (i.e. Spring MVC Dependency, Spring Web, Jackson, REST and Tomcat)
Similarly, for testing, spring boot provides a starter dependency(Also called maven spring boot starter),
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <version>3.0.0</version> <scope>test</scope> </dependency>
This maven starter dependency for testing would include,
Similarly for spring data jpa(i.e. To work with databases), spring boot also provides a starter pack for spring boot data jpa.
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> <version>3.0.0</version> </dependency>
This starter dependency for data jpa would include,
So, we have seen three starter dependency provided by Spring Boot,
That makes our life a lot easier by including bunch of dependencies by adding just one dependency.