@CrossOrigin(allowCredentials="true", allowedHeaders="*", methods={RequestMethod.GET,  
            RequestMethod.POST, RequestMethod.DELETE, RequestMethod.OPTIONS,  
            RequestMethod.HEAD, RequestMethod.PUT, RequestMethod.PATCH}, origins="*")
    @RequestMapping(value="/save",method={RequestMethod.POST})
    public String save(@RequestBody PostColumn entity) {
        String json = tableService.save(entity.getSchame(),entity.getTablename(),entity.getColumnname(),entity.getRemark());
        logger.info(json);
        return json;
    }

这里一定要在实体类之前加上@RequestBody

相关文章:

  • 2022-12-23
  • 2021-12-16
  • 2021-08-01
  • 2022-02-05
  • 2022-12-23
  • 2021-11-12
  • 2022-12-23
猜你喜欢
  • 2019-01-31
  • 2021-08-29
  • 2021-08-06
  • 2022-12-23
  • 2021-08-13
  • 2022-12-23
  • 2021-12-28
相关资源
相似解决方案