springboot2.x中不支持delete请求的解决方案

在使用delete请求时,首先要在全局配置文件中开启mvc的HiddenHttpMethodFilter:

# 开启mvc的HiddenHttpMethodFilter,以便可以表单可以发送DELETE请求
spring.mvc.hiddenmethod.filter.enabled=true

你可能感兴趣的:(springboot)