title: No converter found capable of converting from type java.lang.String to type @org.springframework.data.repository.query.Param
body: <p>I'm building a MongoDb rest application with spring boot 1.1.5. I have created a repository:</p>
  
  <pre><code>@RepositoryRestResource(collectionResourceRel = "SourceProductV1Repository", path = "SourceProductV1Repository")
  public interface SourceProductV1Repository extends MongoRepository&lt;SourceProductV1Model, String&gt; {
  
      public List&lt;SourceProductV1Model&gt; findByUser (@Param("user") MongoUser user);
  
  }
  </code></pre>
  
  <p>I Defined a converter to convert String to MongoUser (the converter is correctly registered in the spring context):</p>
  
  <pre><code>@Component
  public class String2MongoUserConverter implements Converter&lt;String, MongoUser&gt;{
      private static final Log LOGGER =  LogFactory.getLog(String2MongoUserConverter.class.getName());
  
      @Override
      public MongoUser convert(String s) {
          return null;
      }
  }
  </code></pre>
  
  <p>So when I try to access <code>http://localhost:8080/SourceProductV1Repository/search/findByUser?user=test</code></p>
  
  <p>I get the following error:</p>
  
  <pre><code>org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type java.lang.String to type @org.springframework.data.repository.query.Param com.ddelizia.model.MongoUser
      at org.springframework.core.convert.support.GenericConversionService.handleConverterNotFound(GenericConversionService.java:291)
      at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:177)
      at org.springframework.data.rest.core.invoke.ReflectionRepositoryInvoker.prepareParameters(ReflectionRepositoryInvoker.java:265)
      at org.springframework.data.rest.core.invoke.ReflectionRepositoryInvoker.invokeQueryMethod(ReflectionRepositoryInvoker.java:230)
      at org.springframework.data.rest.webmvc.RepositorySearchController.executeQueryMethod(RepositorySearchController.java:236)
      at org.springframework.data.rest.webmvc.RepositorySearchController.executeSearch(RepositorySearchController.java:146)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215)
      at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
      at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
      at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:749)
      at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:689)
      at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83)
      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:938)
      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870)
      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)
      at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:852)
  </code></pre>
  
  <p>)</p>
  
  <p>What I'm doing wrong? maybe it is expecting some kind of other type as target in the converter?</p>