如果SPRINGBOOT无法接受PUT和DELETE请求,可以添加以下配置试试
@Configuration
public class MvcConfig extends WebMvcConfigurationSupport {
@Bean
public FormContentFilter httpPutFormContentFilter() {
return new FormContentFilter ();
}
}
如果SPRINGBOOT无法接受PUT和DELETE请求,可以添加以下配置试试
@Configuration
public class MvcConfig extends WebMvcConfigurationSupport {
@Bean
public FormContentFilter httpPutFormContentFilter() {
return new FormContentFilter ();
}
}