spring-data-slor 通配符的匹配很全面, 但无法找到元素 'solr:solr-server' 的声明。

错误信息:

Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 9 in XML document from class path resource [spring/spring-solr.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 105; cvc-complex-type.2.4.c: 通配符的匹配很全面, 但无法找到元素 'solr:solr-server' 的声明。

 解决:

要么更换 spring-data-solr 版本, 要么把 solr:solr-server更改为  solr:solr-client

我的版本

spring-data-solr-2.1.3.RELEASE

猜你喜欢

转载自www.cnblogs.com/aizm/p/10920182.html