You can do something like this (create a proxy method that intercepts the "old" calls and transfers them to the new method):
@RequestMapping(value="/your-mapping", params = {"oldparam1", "oldparam2", ...}) public Whatever yourOldMethod(@RequestParam(value="oldparam1", required=true) String oldParam1, ...){ return yourNewMethod(oldParam1, ...); } @RequestMapping(value="/your-mapping", params = {"newparam1", "newparam1", ...}) public Whatever yourNewMethod(@RequestParam(value="newparam1", required=true) String oldParam1, ...){
If you do not need to support old calls, just delete yourOldMethod .
The beauty here is using the "params" of @RequestMapping , which allows two methods to listen to the same "URL" (with different parameters for each)
source share