Spring / Spring7 basics Interview questions
Define a Spring Boot starter?
A Spring Boot starter is a curated dependency descriptor - just a Maven or Gradle artifact with no code of its own - that pulls in a coherent set of libraries known to work well together for a particular purpose, so you don't have to hand-pick and version-match each one yourself.
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>
Adding spring-boot-starter-web, for example, brings in Spring MVC, an embedded Tomcat server, and Jackson for JSON, all at compatible versions. Starters exist for data access (spring-boot-starter-data-jpa), security, testing, and dozens of other concerns, and each one usually triggers related auto-configuration once it's on the classpath.
More Related questions...