package com.ft.spikes;

import com.ft.spikes.repositories.PersonRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class MongoRepositoryApplication implements CommandLineRunner
{
    @Autowired
    public PersonRepository people;

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

    @Override
    public void run(String... strings) throws Exception {
    }
}

@@ -21,123 +21,8 @@
 s;%0A%0A
-import com.ft.spikes.repositories.PersonRepository;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0A
 impo
@@ -287,60 +287,8 @@
 r%0A%7B%0A
-    @Autowired%0A    public PersonRepository people;%0A%0A
     

Remove autowired repository in MongoRepositoryApplication, see MongoRepositoryApplicationTests