突然间,我得到了100个这样的Eclipse错误:
描述资源路径位置类型
cvc-complex-type.2.4.c:匹配的通配符是strict,但是找不到元素'int-amqp:inbound-channel-adapter'的声明。 cache-config.xml / smartdestinations -sf / src / main / webapp / WEB-INF / conf / spring / integration line 34 XML问题
实际上,我每个spring-integration元素都会收到此错误。 有没有可能修复?
XML文件的开头如下,特定错误与第一个元素
有关<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:int="http://www.springframework.org/schema/integration"
xmlns:int-amqp="http://www.springframework.org/schema/integration/amqp"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:task="http://www.springframework.org/schema/task"
xmlns="http://www.springframework.org/schema/beans"
xsi:schemaLocation="http://www.springframework.org/schema/integration/amqp http://www.springframework.org/schema/integration/amqp/spring-integration-amqp-3.0.xsd
http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">
<context:component-scan base-package="com.smartdestinations.sfweb.service.cache" />
<context:property-placeholder location="classpath:module.properties" ignore-unresolvable="false" />
<int-amqp:inbound-channel-adapter id="cacheInboundChannelAdaptor" auto-startup="${cache.processing.enabled}"
channel="cacheRoutingChannel"
queue-names="${cache.queue.name}"
header-mapper="cacheMessageHeaderMapper"
connection-factory="connectionFactory"
error-channel="cacheErrorChannel" />
我也遇到了Spring xsd文件的错误:
描述资源路径位置类型
引用文件包含错误(http://www.springframework.org/schema/beans/spring-beans-3.0.xsd)。有关更多信息,请右键单击“问题视图”中的消息,然后选择“显示详细信息...”inventory-config.xml / smartdestinations -sf / src / main / webapp / WEB-INF / conf / spring / inventory line 1 XML问题
显示详细信息包含以下消息:“架构不能包含两个具有相同名称的全局元素,此架构包含两次”http://www.springframework.org/schema/beans,标识类型“。