While developing spring-boot REST API or spring-mvc REST API, we have classes annotated with @Controller, @Service and @Repository. These all work behind a tomcat application server.
So when multiple requests arrive concurrently into the application server, is it that a new instance of controller , service and repository created for each request? How spring handles it? Does the wiring of beans occur at runtime?
Does DispatcherServlet create new instances and do their wirings for each request in new thread?
Where can I find technical details and documentation for these things.
Thanks in advance for your inputs