RequestMapping和 PostMapping的区别

 @PostMapping("list/data/{version}")
    public @ResponseBody JSONResult listData(@RequestBody PageCondition condition){
 @RequestMapping(value = "list/data/{version}", method = RequestMethod.POST)
    public @ResponseBody JSONResult listDatav2(@RequestBody PageCondition condition){

使用RequestMapping 和 PostMapping 做对象映射, 

@PostMapping 就是

@RequestMapping(method = RequestMethod.POST)

你可能感兴趣的:(java)