【发布时间】:2014-02-27 13:25:39
【问题描述】:
我有一个关于 mule xml 配置文件的小问题,而我尝试使用记录器和表达式的简单 mule 应用程序。配置文件是这样的:
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:core="http://www.mulesoft.org/schema/mule/core" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns:spring="http://www.springframework.org/schema/beans" version="EE-3.4.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.mulesoft.org/schema/mule/core
http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/http
http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd">
<flow name="basic_tutorialFlow1" doc:name="basic_tutorialFlow1">
<http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8084" doc:name="HTTP"/>
<expression-filter expression="#[message.payload != '/favicon.ico']" doc:name="Expression"></expression-filter>
<logger level="INFO" doc:name="Logger" message="Current payload is #[message.payload]"/>
<set-payload doc:name="Set Payload" value="#['Hello, ' + message.payload + '. Today is ' + server.dateTime.format('dd/MM/yy') + '.' ]"/>
</flow>
我在表达式过滤器和记录器上有错误。显示的错误如下: cvc-complex-type.2.4.a:发现以元素“表达式过滤器”开头的无效内容
程序可以运行,但是当项目仍然有错误时我感觉不对。我想知道如何解决这个问题。
我检查了http://www.mulesoft.org/schema/mule/,但没有看到表达式过滤器或记录器。
我的编辑器是STS 3.4.0,mule版本是3.4,谢谢。
【问题讨论】:
标签: mule