Ans:A HTTP request is sent by the browser over internet connection and when request comes to tomcat(servlet container) it allocates a thread from thread pool to serve based on URL mapping of servlet. Because tomcat has the URL mapping of all the servlet . thread from thread pool initialize object of servlet ,calls its service method, generate and send response .then thread goes back to the pool ,ready to serve another request from the client.
Subscribe to:
Post Comments (Atom)
Testing controller
------Controller------------- @RestController @RequestMapping("/items") public class ItemController { private final ItemServic...
-
If any event fired on a DOM element it will also fired on all of its parent element which is called the event bubbling. So, the element eve...
-
N.B- we can iterate an array using foreach and map in javascript like below- var arrays = [1,2,3,4,5]; //foreach arrays.forEach(function(cu...
-
slice()- returns a shallow copy of a portion of given array . ex: var a=['j','u','r','g','e','n...
No comments:
Post a Comment