RepositoryItemReader doesn't find methods with arguments
<p>I'm setting up an ItemRepositoryReader for the reader in a springBatch step.</p>

<pre><code>public ItemReader&lt;EcheanceEntity&gt; reader(){
    RepositoryItemReader&lt;EcheanceEntity&gt; reader = new RepositoryItemReader&lt;EcheanceEntity&gt;();
    reader.setRepository(echeanceRepository);
    reader.setMethodName("findById");
    List parameters = new ArrayList();
    long a = 0;
    parameters.add(a);
    reader.setArguments(parameters);
    Map&lt;String, Direction&gt; sort = new HashMap&lt;String, Direction&gt;();
    sort.put("id", Direction.ASC);
    reader.setSort(sort);
    return reader;
}
</code></pre>

<p>this is the line in my repository.</p>

<pre><code>public interface EcheanceRepository extends JpaRepository&lt;EcheanceEntity, Long&gt;{


public EcheanceEntity findById(long id);

@Override
public List&lt;EcheanceEntity&gt; findAll();
</code></pre>

<p>If a use the method findAll(), so without any arguments, it works fine. But if I use the method findById(long id) I get "no such method exception, findById(java.lang.Long, org.springframework.data.domain.PageRequest)" from the ItemRepositoryReader. The method works fine without using the reader when I'm testing it by using immediately the repository.</p>

<p>Thank you.</p>