Demo Site

Friday, November 13, 2009

Spring @RequestMapping doesn't work in Tomcat

Had to deal with "No mapping found" errors when setting up a Spring controller?

The problem here had nothing to do with Spring -- it was all about Tomcat not picking up the changes made to the @RequestMapping annotation. The instructions at the link below helped (some changes made it):

http://blog.redfin.com/devblog/2009/09/how_to_set_up_hot_code_replacement_with_tomcat_and_eclipse.html


but even then, sometimes the change was not picked up, and it would make me think that the value I put in the annotation was wrong. So apparently, make sure to do a tomcat restart before jumping to that conclusion!

1 comment:

Chris Marx said...
This comment has been removed by the author.

Labels

Labels

Labels