• +91 9723535972
  • info@interviewmaterial.com

Spring Interview Questions and Answers

Question - How to get ServletConfig and ServletContext objects in spring bean?

Answer -

This can be done by either implementing the spring-aware interfaces or by using the @Autowired annotation.

  • @Autowired
  • private ServletContext servletContext;
  • @Autowired
  • private ServletConfig servletConfig;

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners