我正在使用本指南通过 Spring-boot: link配置 CouchDb 。当这个 XML 配置文件出现问题
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:couchdb="http://www.ektorp.org/schema/couchdb"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.ektorp.org/schema/couchdb http://www.ektorp.org/schema/couchdb/couchdb.xsd
">
<couchdb:database name="myDatabase" url="http://localhost:5984"/>
</beans>
无法验证,因为无法读取ektorp xml 架构。当我通过浏览器链接检查其架构时,没有,但在 maven 依赖项中肯定有一个。但是当我切换这条线时
http://www.ektorp.org/schema/couchdb/couchdb.xsd
进入
classpath:couchdb.xsd
它也不会被读取,即使它位于名为 couchdb.xsd 的 maven 依赖项之一中。(您可以在github上检查该文件)。
我如何强制 XML 阅读器查看 maven 依赖项以找到正确的模式文件?