title: How to configure the Neo4j repository with Spring Data Neo4j 3.4.0?
body: <p>I tried to upgrade from the 3.3.2 to the 3.4.0 version of spring data neo4j on search.maven.org but the build now gives the following exception:</p>
  
  <pre><code>AnnotationFormatError: Invalid default: public abstract java.lang.Class org.springframework.data.neo4j.config.EnableNeo4jRepositories.repositoryBaseClass()
  </code></pre>
  
  <p>The application works just fine in 3.3.2.</p>
  
  <p>Here is the configuration class:</p>
  
  <pre><code>@Configuration
  @EnableNeo4jRepositories(basePackages = { "it.data.neo4j.repository" })
  @EnableTransactionManagement
  @ComponentScan(basePackages = { "it.data.neo4j.service" })
  public class Neo4JRepositoryConfiguration extends Neo4jConfiguration {
  
    private static Logger logger = LoggerFactory.getLogger(Neo4JRepositoryConfiguration.class);
  
    public static final String URL = "http://localhost:7474/db/data/";
    public static final String LOGIN = "neo4j";
    public static final String PASSWORD = "xxxx";
  
    Neo4JRepositoryConfiguration() {
      setBasePackage("it.data.neo4j.domain");
    }
  
    @Bean
    GraphDatabaseService graphDatabaseService() {
      return new SpringCypherRestGraphDatabase(URL, LOGIN, PASSWORD);
    }
  
    @Autowired
    LocalContainerEntityManagerFactoryBean entityManagerFactory;
  
    @Override
    public PlatformTransactionManager neo4jTransactionManager(
        GraphDatabaseService graphDatabaseService) {
      return new ChainedTransactionManager(
          new JpaTransactionManager(entityManagerFactory.getObject()),
          new JtaTransactionManagerFactoryBean(graphDatabaseService).getObject());
    }
  
  }
  </code></pre>
  
  <p>The dependencies are:</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
    &lt;artifactId&gt;spring-data-neo4j&lt;/artifactId&gt;
    &lt;version&gt;3.4.0.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
    &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
    &lt;artifactId&gt;spring-data-neo4j-rest&lt;/artifactId&gt;
    &lt;version&gt;3.4.0.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>