title: How to use Spring Converter for some controllers only?
body: <p>I have c converter which works:</p>
  
  <pre><code>public class StringToLongConverter implements Converter&lt;String, Long&gt; {
      @Override
      public Long convert(String source) {
          Long myDecodedValue = ...
          return myDecodedValue;
      }
  }
  </code></pre>
  
  <p>In web configuration I have:</p>
  
  <pre><code>@Override
  public void addFormatters (FormatterRegistry registry) {
      registry.addConverter(new StringToLongConverter());
  }
  </code></pre>
  
  <p>Everything is good but it works for all controllers and I need it to be executed only for some controllers. </p>
  
  <pre><code>//I need this controller to get myvalue from converter
  @RequestMapping(value = "{myvalue}", method = RequestMethod.POST)
  public ResponseEntity myvalue1(@PathVariable Long myvalue) {
  
      return new ResponseEntity&lt;&gt;(HttpStatus.OK);
  }
  
  //I need this controller to get myvalue without converter
  @RequestMapping(value = "{myvalue}", method = RequestMethod.POST)
  public ResponseEntity myvalue2(@PathVariable Long myvalue) {
  
      return new ResponseEntity&lt;&gt;(HttpStatus.OK);
  }
  </code></pre>
  
  <p>Can we specify which converters or parameters should be used with custom converter and which should not?</p>