title: Spring data JPA Spel - @Query Issue
body: <p>I am having trouble getting SPEL and Spring data jpa to work</p>
  
  <p><strong>Following is My Repository</strong></p>
  
  <pre><code>package eg.repository;
  public interface MyEntityRepository extends JpaRepository&lt;MyEntity, Long&gt;,JpaSpecificationExecutor&lt;MyEntity&gt; {
  
      @Query("SELECT e FROM eg.domain.MyEntity e " +
              "WHERE e.title = :#{#filter.title}"
      )
      Page&lt;MyEntity&gt; list1(@Param("filter") MyFilter filter,Pageable pageable);
  }
  </code></pre>
  
  <p><strong>Filter Component</strong></p>
  
  <pre><code>package eg.service;
  
  import org.springframework.stereotype.Component;
  
  @Component("filter")
  public class MyFilter {
  
      public String titleFilter() {
          return "%title%";
      }
      private String title = "title title1";
      public Long[] idFilter() {
          return new Long[] {
                  1L, 2L
          };
      }
  }
  </code></pre>
  
  <p><strong>Following is MyEntity</strong></p>
  
  <pre><code>package eg.domain;
  @Entity
  public class MyEntity implements Serializable {
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      private Long id;
  
      @Column(name = "title")
      private String title;
      ......
  }
  </code></pre>
  
  <p><strong>Main Class</strong></p>
  
  <pre><code>LOG.info("Application initialized " + annotationConfigApplicationContext);
          MyEntityRepository myEntityRepository =
                      (MyEntityRepository) annotationConfigApplicationContext.getBean(MyEntityRepository.class);
          MyFilter filter = annotationConfigApplicationContext.getBean(MyFilter.class);
          PageRequest pageRequest = new PageRequest(0, 5);
          Page&lt;MyEntity&gt; page = myEntityRepository.list1(filter,pageRequest);
          List&lt;MyEntity&gt; entities= page.getContent();
          for(MyEntity entity: entities){
              System.out.println(entity.getId() + " TITLE " +  entity.getTitle());
          }
  </code></pre>
  
  <p>Following is the error that I am getting</p>
  
  <pre><code>Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myEntityRepository': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Using named parameters for method public abstract org.springframework.data.domain.Page eg.repository.MyEntityRepository.list1(eg.service.MyFilter,org.springframework.data.domain.Pageable) but parameter 'filter' not found in annotated query 'SELECT e FROM eg.domain.MyEntity e WHERE e.title = :#{#filter.title}'!
  </code></pre>