I have implemented the method as below but there is an error saying - remove override annotation, which should be there. Under which circumstances this error would occur? Due to this my beans are not being created and I am not able to run the application.
@Override
public void setServletContext(ServletContext servletContext) {
}
The error which shows up on the console is - "The method setServletContext(ServletContext) of type MenuHelper must override a superclass method". But the method is there and goes undetected. If I remove the method, there should be an error saying add the unimplemented methods - which is also not showing up. Kindly help me with this situation. Thanks