Use springboot to submit a DELETE request report: There was an unexpected error (type=Method Not Allowed, status=405). Error

Use springboot to submit a DELETE request and report a 405 error.
Insert picture description here
Solution :
add in the configuration file:

spring.mvc.hiddenmethod.filter.enabled=true

Guess you like

Origin blog.csdn.net/qq_47768542/article/details/110872204