我有以下 spring servlet-context.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:mvc="http://www.springframework.org/schema/mvc"
xmlns:sec="http://www.springframework.org/schema/security"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mongo="http://www.springframework.org/schema/data/mongo"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.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/security http://www.springframework.org/schema/security/spring-security-3.1.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd">
我在 Eclipse 中得到以下文件错误:
通过文件“servlet-context.xml”验证文件“spring-mongo-1.0.xsd”时检测到以下错误。在大多数情况下,可以通过直接验证“spring-mongo-1.0.xsd”来检测这些错误。但是,只有在 servlet-context.xml 的上下文中验证 spring-mongo-1.0.xsd 时才会发生错误。
src-resolve:无法将名称“存储库:存储库”解析为(n)“类型定义”组件位置:第 110 行
该项目仍然有效,但我试图摆脱这个错误。有任何想法吗?