SyntaxFix
Write A Post
Hire A Developer
Questions
The @Context annotation (see answers in this question :What does context annotation do in Spring?) will cause it to be injected for you.
@Context
I had to use
@Context private HttpServletRequest request;