我使用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