我使用Java Spring Integration的2.0.0版本和Java Spring框架3.0.5Java的春天:属性“时间单位”是不允许元素出现“诠释:轮询”
我收到错误“属性'时间单位'不允许出现在元素'int:poller'中。”在我的配置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:context="http://www.springframework.org/schema/context"
xmlns:int="http://www.springframework.org/schema/integration"
xmlns:int-file="http://www.springframework.org/schema/integration/file"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-2.0.xsd
http://www.springframework.org/schema/integration/file http://www.springframework.org/schema/integration/file/spring-integration-file-2.0.xsd">
<int-file:inbound-channel-adapter directory="file:${dir.cu}"
channel="cuProvinceFilesIn" prevent-duplicates="true" filename-regex=".+\.csv">
<int:poller fixed-delay="60" time-unit="SECONDS" max-messages-per-poll="10" receive-timeout="10000">
</int:poller>
</int-file:inbound-channel-adapter>
检查您的类路径不同版本的重复春天INT罐子。 – zmf 2014-11-06 16:41:10