That’s a terrible blog post title, I know. Nevertheless, I just burned 90 minutes trying to figure out why a simple Spring MultiActionController setup left me with an error: “No request handling method with name ‘list’ in class.” Google was little help, so I resorted to Bing.
Eventually, I found a buried forum response with my exact problem, I had referenced the wrong package’s type! If you’re running in to this, make sure you do this:
import org.springframework.web.servlet.ModelAndView;
and not this:
import org.springframework.web.portlet.ModelAndView;
This will teach me to be more mindful of what Eclipse decides to add for me automatically.
Oh God..
I was not able to figure out what was wrong with my code..
I struggled for almost an hour..
And Thanks Nick I got d answer..
Have to be very careful while selecting classes..