【发布时间】:2021-08-02 21:59:55
【问题描述】:
我们的站点中有一项服务使用 neo4j 作为数据库。今天,当我尝试加载开发服务时,项目爆炸了。我收到这样的错误:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquigraph' defined in class path resource [org/liquigraph/spring/starter/LiquigraphAutoConfiguration$LiquigraphConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException:
cvc-elt.1: Cannot find the declaration of element 'changelog'.
还有这个:
2021-08-02 14:43:41.516 WARN 9650 --- [ restartedMain] o.l.core.io.xml.ChangelogParser : XSD validation warning : schema_reference.4: Failed to read schema document 'http://www.liquigraph.org/schema/1.0/liquigraph.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
在我的终端中。
我去了site listed in the error,但它不起作用。还有 this one 非常相似,但给出了 404。
我们的 pom.xml 文件为 liquigraph 列出了这个:
<!-- https://mvnrepository.com/artifact/org.liquigraph/liquigraph-spring-boot-starter -->
<dependency>
<groupId>org.liquigraph</groupId>
<artifactId>liquigraph-spring-boot-starter</artifactId>
<version>3.0.3</version>
</dependency>
在研究这个项目时,我看到了一些关于“离线”运行它的东西。如何在缺少 XSD 文件的情况下加载项目?
【问题讨论】:
-
我的错,我在部署新网站时搞砸了,现在将修复它。
标签: neo4j xsd liquigraph