springboot 2.2.7 Theamleaf发送DELETE/PUT请求收到的都是post请求

1、我的页面和contrllerspringboot 2.2.7 Theamleaf发送DELETE/PUT请求收到的都是post请求

 

springboot 2.2.7 Theamleaf发送DELETE/PUT请求收到的都是post请求

2、我的配置

springboot 2.2.7 Theamleaf发送DELETE/PUT请求收到的都是post请求 

问题:根据网上搜到的html和配置文件都修改了,但是每次还是会报错

springboot 2.2.7 Theamleaf发送DELETE/PUT请求收到的都是post请求

3、根据源码发现 HiddenHttpMethodFilter类没有注入到容器中

springboot 2.2.7 Theamleaf发送DELETE/PUT请求收到的都是post请求

4、所有就在自己的配置文件中加上了

 5、重启后发现可以发送delete请求