Test: Spring MVC Test
Question 1:
Prev
Next
Hide answers
Which of the following code samples will get the ServletContext inside an Interceptor?
Note: There may be more than one right answer.
setServletContext(ServletContext context) { this.context = context; }
1 votes
@Autowired ServletContext context;
0 votes
request.getSession().getServletContext();
0 votes
request.getSession().getServletContext();
0 votes
Please login to submit your answer.