Кто-нибудь знает, как получить SpatialRepository
@Autowiring в приложении весенней загрузки? Я добавил дополнительную зависимость в свой путь к классам
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-spatial</artifactId>
<version>0.9</version>
</dependency>
со следующими параметрами конфигурации
@SuppressWarnings("unused")
@Configuration
@EnableAutoConfiguration
@EnableTransactionManagement
@EnableNeo4jRepositories(basePackages = {"com.eanda.prototype", "test.com.eanda.prototype"})
@ComponentScan({"com.erranda.prototype", "org.springframework.data.neo4j"})
Я пробовал все это, но безрезультатно. Мой класс домена таков:
public interface ErrandRepository extends GraphRepository<Errand>, SpatialRepository<Errand> {}
Я получаю следующее исключение при выполнении запроса в пространственном репо
java.lang.IllegalArgumentException: No index provider 'spatial' found. Maybe the intended provider (or one more of its dependencies) aren't on the classpath or it failed to load.
SpatialRepository
e.g.public interface PersonRepository extends SpatialRepository<Person> {}
. У тебя естьspring-data-neo4j
в помпе? Здесь есть довольно простой учебник: spring.io/guides/gs/accessing -data-neo4j это работает для меня. - person Andreas   schedule 18.01.2015