Say I have a Spring controller.
@RequestMappin("/path") public MyController { }
As indicated, the default controller bulk is Singleton. I know that I can request an autwire request in the REQUEST beans area, however, if I try to audit, so
@RequestMappin("/path") public MyController { @Autowired private HttpServletRequest request; }
It still works, and for each request I get the corresponding request object. Does this mean that autwire works regardless of the request area or not?
user4577362
source share