Spring Data JPA custom method causing PropertyReferenceException
<p>I have been trying to create a spring boot application. In my application I would like to add some custom methods to save the data instead of using the default save method.</p>

<p>My application entry point is something like this:</p>

<pre><code>@Configuration
@ComponentScan
@EnableJpaRepositories(repositoryImplementationPostfix = "CustomImpl")
@Import(RepositoryRestMvcConfiguration.class)
@EnableAutoConfiguration
@PropertySource("application.properties")
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);         
    }

}
</code></pre>

<p>I have changed this line repositoryImplementationPostfix to even Impl but, it didn't work.</p>

<p>My CrudRepository</p>

<pre><code>@RepositoryRestResource
public interface TaRepository extends CrudRepository&lt;Ta, Integer&gt; ,TestRepository{


    List&lt;Ta&gt; findByName(@Param("name") String name);

}
</code></pre>

<p><strong>My Custom Repository:</strong></p>

<pre><code>public interface TestRepository {
    public void myCustomMethod(TestDto dto);
}
</code></pre>

<p><strong>My Custom Repository Impl</strong></p>

<pre><code>public class TestRepositoryCustomImpl implements TestRepository{

    @PersistenceContext
    private EntityManager em;
    @Override
    public void myCustomMethod(TestDto model){
}
</code></pre>

<p><strong>NOTE:</strong></p>

<p>If I change my CrudRepostory from the mentioned to this:</p>

<pre><code> @RepositoryRestResource
    public interface TaRepository extends CrudRepository&lt;Ta, Integer&gt; {


        List&lt;Ta&gt; findByName(@Param("name") String name);

    }
</code></pre>

<p>everything works fine. But not with the custom method implementation.</p>