package com.ft.spikes;

import com.ft.spikes.models.Person;
import com.ft.spikes.repositories.PersonRepository;
import org.neo4j.io.fs.FileUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
import org.springframework.data.neo4j.repository.config.EnableNeo4jRepositories;

import java.io.File;

@SpringBootApplication
@Import(Neo4jConfiguration.class)
public class Neo4jRepositoryApplication implements CommandLineRunner {

    @Autowired
    PersonRepository personRepository;

    public void run(String... args) throws Exception {

    }

    public static void main(String[] args) throws Exception {
        FileUtils.deleteRecursively(new File("accessingdataneo4j.db"));

        SpringApplication.run(Neo4jRepositoryApplication.class, args);
    }
}
@@ -28,184 +28,33 @@
 ort 
-com.ft.spikes.models.Person;%0Aimport com.ft.spikes.repositories.PersonRepository;%0Aimport org.neo4j.io.fs.FileUtils;%0Aimport org.springframework.beans.factory.annotation.Autowired
+org.neo4j.io.fs.FileUtils
 ;%0Aim
@@ -279,89 +279,8 @@
 ort;
-%0Aimport org.springframework.data.neo4j.repository.config.EnableNeo4jRepositories;
 %0A%0Aim
@@ -432,63 +432,8 @@
  %7B%0A%0A
-    @Autowired%0A    PersonRepository personRepository;%0A%0A
     
@@ -553,16 +553,16 @@
 ption %7B%0A
+
         
@@ -625,17 +625,16 @@
 .db%22));%0A
-%0A
         

Remove autowired repository in Neo4jRepositoryApplication, see Neo4jRepositoryApplicationTests