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
In Controller.java:
@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
http://www.example.com/myapp/save
id: my-service
uri: ${param.url}
predicates:
- Path=/storage/**
filters:
- RewritePath=/storage/(?<segment>.*), /$\{segment}
i also use this method but it just work on localhost, in server it doesnt work