Springboot 2.2.x 默认不支持put、delete等请求方式

问题:springboot 2.2.x 默认不支持put delete等请求方式。

原因:springboot默认关闭了对它们的支持,只要在application.properties里面打开即可 spring.mvc.hiddenmethod.filter.enabled=true

具体底层原理查看图示:

猜你喜欢

转载自www.cnblogs.com/niudaben/p/11897081.html