@Controllerclasses serve C from MVC . Note that the real controller is in Spring MVC DispatchServlet, which will use a specific class @Controllerto process the request URL.
@Serviceclasses should serve your level of service. Here you should put your business logic .
@Repositoryclasses should serve for your level of data access. Here you must place the CRUD logic: insert, update, delete, select.
@Service, @RepositoryAnd your classes are essential M from the MVC . JSP and other viewing technologies (e.g. JSP, Thymeleaf, etc.) will match V from MVC .
@Controller @Service . @Service @Service @Repository .