The requested URL / record was not found on this server in the spring MVC


I am trying to save a data in DB through spring MVC. when I hit save button it redirects me to a page where the error is as follows:

The requested URL /save was not found on this server.

Same code is working on DEV on localhost, I think there is some problem with standalone


@RequestMapping(value="/save", params="save") public ModelAndView save(@RequestParam("save") String save) {.....}

The save pages updates/delete the data from data base

I wonder if your application is actually deployed, but just at a URL you don't expect. It is quite common for app servers to add a context url with the name of the war file. For example, if you war file is named myapp.war, your /save url might be visible like