有没有人知道如何在spring boot应用中获得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.发布于 2015-01-19 05:54:48
您要将空间引擎引入现有的数据库吗?你在插件目录中安装了空间扩展了吗?洛伦佐
https://stackoverflow.com/questions/28004236
复制相似问题