what is the @services dependency
what is the dependency of @repositories
what is the @controllers dependency
i mean dependencies in pom.xml file
If I'm not mistaken @controllers has the dependency
starter.web
and what are the dependencies for repositories and services?
Within the dependency
spring-boot-starter-web
is the dependencyspring-context
which contains a@Service, @Repository, @Controller
among others.This is the dependency tree:
More precisely, @Controller corresponds to Spring MVC, and marks a Controller that can be "scanned" to respond to requests that you can name with the @RequestMapping annotation.
Answering your question, if you mean @Service @Controller and @Repository they correspond to spring-context.
If you run the mvn dependency:tree command you can see which artifact spring-context is checking in on, as well as the version.