1.

What is a Spring boot starter?

Answer»

Spring boot starter comprises of templates which provide a Rapid Application Development, spring boot starter contains a COMBINATION of all the relevant transitive dependencies.  

  • Spring boot starter is a JAR file which predominantly solves the auto-dependency resolution in a spring boot application. 
  • Spring boot starter follows the unified pattern, like every dependency start with spring-boot-starter-X, where X will be the NAME of dependencies.  
  • For instance, if we add the dependency like spring-boot-starter-web, the spring boot starter will internally resolve and download all the ASSOCIATED dependencies, add to the application. 
  • Spring boot ALSO checks and resolves the transitive dependencies internally.

Below are some of the popular Spring boot starters:

  • Spring-boot-starter-web
  • Spring-boot-starter-mvc
  • Spring-boot-starter-security
  • Spring-boot-starter-jpa
  • Spring-boot-starter-tomcat
  • Spring-boot-starter-jetty
  • Spring-boot-starter-json


Discussion

No Comment Found