I\'m new with Spring, and I\'m trying to use the @Autowire annotation for the ServletContext with my class attribute:
@Controller public class ServicesImpl i
Implement the ServletContextAware interface and Spring will inject it for you
@Controller public class ServicesImpl implements Services, ServletContextAware{ private ServletContext context; public void setServletContext(ServletContext servletContext) { this.context = servletContext; }