改了两小时....最后发现是自己脑子卡了,按postman那样传参就行了

 

前端axios

axios.delete('http://127.0.0.1:8080/cfg1', {data:this.selected}).then(res => { 
                                this.getData(1)
                            }, error => {
                                console.log(error.response)                               
                            }).catch(function (error) {
                                console.log(error)
                         })
 
后台
@DeleteMapping(value = "/alarmCfg1")
public boolean delete(@RequestBody List<Integer> ids){
return alarmcfgtableService.removeByIds(ids); }

相关文章:

  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2021-08-23
  • 2022-12-23
  • 2021-06-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-19
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
相关资源
相似解决方案