Java spring-mongo-1.0.xsd错误
我得到以下错误,无法解决它的谷歌搜索也没有成效。请帮忙Java spring-mongo-1.0.xsd错误,java,spring,mongodb,Java,Spring,Mongodb,我得到以下错误,无法解决它的谷歌搜索也没有成效。请帮忙 Referenced file contains errors (http://www.springframework.org/schema/data/mongo/spring-mongo-1.0.xsd). For more information, right click on the message in the Problems View and select "Show Details..." 这是我的密码 <?xml
Referenced file contains errors (http://www.springframework.org/schema/data/mongo/spring-mongo-1.0.xsd). For more
information, right click on the message in the Problems View and select "Show Details..."
这是我的密码
<?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:p="http://www.springframework.org/schema/p"
xmlns:mongo="http://www.springframework.org/schema/data/mongo"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/data/mongo
http://www.springframework.org/schema/data/mongo/spring-mongo-1.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<!-- replica-set="localhost:27017,localhost:27018" -->
<context:annotation-config />
<mongo:repositories base-package="com.kensho.dms.*" />
<mongo:jmx/>
<mongo:mongo host="192.168.55.2" port="27017" />
<mongo:db-factory dbname="kenshodb" mongo-ref="mongo" />
<bean id="mongoTemplate" class="org.springframework.data.mongodb.core.MongoTemplate">
<constructor-arg name="mongo" ref="mongo"/>
<constructor-arg name="databaseName" value="kenshodb"/>
</bean>
<bean id="mongoLoggedInUserDAO" class="com.kensho.nosql.MongoUserDAOImpl" />
</beans>
我做了很多事情。我觉得这是个依赖问题。请帮助。我从几天前开始遇到同样的问题,我将1.0改为1.1,然后问题就消失了。似乎他们已经更改了xsd文件
Referenced file contains errors (http://www.springframework.org/schema/data/mongo/spring-mongo-1.0.xsd). For more
information, right click on the message in the Problems View and select "Show Details..."
http://www.springframework.org/schema/data/mongo/spring-mongo-1.1.xsd
我也打了这个。问题在于Spring数据XSD文件中的硬编码导入。我删除了schemaLocation for context和bean中的导入,并消除了错误 更多信息在这里 这里呢
谢天谢地,有人回答了这个问题。我认为使用1.0版本的库时,这不是正确的解决方案。这只是一次“四处走走”。我错了吗?