What is staters ? How they Work ?

Spring boot provides the number of starters that allows us to add jars in classpath. Spring boot build in startes allowes us  develpoemrnt easier and rapid. Spring boot startes are the dependacy discriptor.


In spring boot all the startes  follow same naming pattern spring-boot-starter-*


Spring boot startes is combine a group of  common or related dependancies into single dependancy.

Example :  Supoose if we want to create spring web application  with tomcat web server then we need to add following minimumn depednacies

spring core jar, spring web,spring mvc, spring transaction jar 


OK So Spring starter componenets combine  all the related jars into the single jar  file depenandcy to our build file  so insted of adding 4 jars we need to add only one jar in our project example

spring -boot-startr-web

By adding this spring boot automaticlly download all the related dependacies in our classpath


Comments

Popular posts from this blog

Filter In Javafx