Following is my aspect:
@Configurable @Aspect public class TimingAspect { @Autowired private HttpServletRequest httpServletRequest;
As the error message said: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
To fix it, register a RequestContextListener listener in web.xml file.
org.springframework.web.context.request.RequestContextListener