首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >SpatialRepository不是自动装配

SpatialRepository不是自动装配
EN

Stack Overflow用户
提问于 2015-01-18 04:57:53
回答 1查看 79关注 0票数 0

有没有人知道如何在spring boot应用中获得SpatialRepository @Autowiring?我已经在类路径中添加了额外的依赖项

代码语言:javascript
复制
<dependency>
  <groupId>org.neo4j</groupId>
  <artifactId>neo4j-spatial</artifactId>
  <version>0.9</version>
</dependency>

具有以下配置选项

代码语言:javascript
复制
@SuppressWarnings("unused")
@Configuration
@EnableAutoConfiguration 
@EnableTransactionManagement
@EnableNeo4jRepositories(basePackages = {"com.eanda.prototype", "test.com.eanda.prototype"})
@ComponentScan({"com.erranda.prototype", "org.springframework.data.neo4j"})

我已经试过了,但都没有用。我的域类是这样的:

代码语言:javascript
复制
    public interface ErrandRepository extends GraphRepository<Errand>, SpatialRepository<Errand> {}

在空间存储库上运行查询时,我得到以下异常

代码语言:javascript
复制
    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.
EN

回答 1

Stack Overflow用户

发布于 2015-01-19 05:54:48

您要将空间引擎引入现有的数据库吗?你在插件目录中安装了空间扩展了吗?洛伦佐

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28004236

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档