HttpServletRequest
Learn HttpServletRequest (Request Handling, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes HttpServletRequest ( jakarta.servlet.http ) is the servlet API object that holds everything about the incoming request: method, URL, headers, parameters, cookies, body stream and session. Spring injects it into controller methods when you add it as a parameter; there is one object per request. Prefer annotations such as @RequestParam and @RequestHeader for simple needs, and use the raw request only for what they cannot do.