'None request parameter in Requestmapping
I have a request mapping which passes id and add/update it in the database, however I have a same functionality which is add/update of xid. Can I reuse the edit method passing not request parameter?
@RequestMapping("/editPage.htm")
public ModelAndView edit(@RequestParam(value = "id", required = false) Long id, Long xid) {
}
private void updateXid() {
edit(null, xid);
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
