Question: I am using CRUDRepository to perform crud operations using JPA , but I am getting this error:

> 
> java.lang.NoSuchMethodError:
>  org.springframework.data.jpa.repository.config.JpaRepositoryConfigExtension.registerIfNotAlreadyRegistered
> 
> 
> 

Please help.

Answer: 
It comes from this commit:

<https://github.com/spring-projects/spring-data-commons/commit/6677612f8eac7a7ab67206a5709b6e94cc51028b>

So you'll need at least spring-data-commons 1.10.0.RELEASE:

```
<dependency>
  <groupId>org.springframework.data</groupId>
  <artifactId>spring-data-commons</artifactId>
  <version>1.10.0.RELEASE</version>
</dependency>

```

But: if this is happening is probably because you've a conflict between versions, so it's better if you find out why you are loading an older spring-data-commons
I was able to solve this error , earlier i was using spring-data-jpa.1.7.2.RELEASE.jar , now i switched on to spring-data-jpa.1.6.0.RELEASE.jar and it solved the problem

thanks for help.