title: How to properly register HiddenHttpMethodFilter in Spring Boot?
body: <p>I am following a tutorial that has the following registration code for HiddenHttpMethodFilter. It uses a @Bean annotation that returns a new instance:</p>
  
  <pre><code>@SpringBootApplication
  public class ReactiveWebApplication {
  
      public static void main(String[] args) {
          SpringApplication.run(ReactiveWebApplication.class, args);
      }
  
      @Bean
      HiddenHttpMethodFilter hiddenHttpMethodFilter() {
          return new HiddenHttpMethodFilter();
      }
  }
  </code></pre>
  
  <p>However, this doesn't seem to work for me? I have a form:</p>
  
  <pre><code>&lt;form method="post" action="/images/Picture of me 1.png" &gt;&lt;input type="hidden" name="_method" value="delete"/&gt;
      &lt;input type="submit" value="Delete" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>and the request handler:</p>
  
  <pre><code>@DeleteMapping(value = BASE_PATH + "/" + FILENAME)
  public Mono&lt;String&gt; deleteFile(@PathVariable String filename) {
      return imageService.deleteImage(filename).then(Mono.just("redirect:/"));
  }
  </code></pre>
  
  <p>But the server does not redirect the POST request to my deleteFile method:</p>
  
  <pre><code>2018-06-18 10:47:59.486  WARN 16344 --- [ctor-http-nio-5] .a.w.r.e.DefaultErrorWebExceptionHandler : Failed to handle request [POST http://localhost:8080/images/Picture%20of%20me%201.png]: Response status 405 with reason "Request method 'POST' not supported"
  </code></pre>
  
  <p>If I change the @DeleteMapping to @PostMapping, then it works, which leads me to suspect that the HiddenHttpMethodFilter is not kicking in?</p>