我们的站点中有一个使用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>.在我的终点站。
我去了错误中列出的站点,它不起作用。还有这一个,它非常相似,但却给出了一个404。
我们的pom.xml文件为清算仪列出了以下内容:
<!-- 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文件?
发布于 2021-08-03 09:56:52
现在应该修好了。我刚刚部署了一个新版本的网站,并错误地配置了几件事情(错误的CNAME文件位置,错误的模式文件位置)。
https://www.liquigraph.org/schema/1.0/liquigraph.xsd和http://www.liquigraph.org/schema/1.0/liquigraph.xsd现在应该可以正常工作了。
LiquiGraph最新版本还支持模式位置重定向,例如最新的3.x和4.x。一定要升级!
https://stackoverflow.com/questions/68628353
复制相似问题