mall
mall copied to clipboard
Update the @RequestMappings with particular @GetMappings @PostMappings @PutMappings @DeleteMapping.
In the Java controllers the @RequestMappings are to be replaced with @GetMapping @PostMappings @PutMappings @DeleteMapping to make code more readable and short .
@ApiOperation("编辑活动") @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult update(@PathVariable Long id, @RequestBody SmsFlashPromotion flashPromotion) { int count = flashPromotionService.update(id, flashPromotion); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); }
Here the @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) can be updated with @PutMapping("/update/{id}") simply .
I want to work on this issue.
Hey any update on this issue ?
Opened the Pull Request #614. Please review it there.