Mule HTTPS连接器上未识别Spring属性

Mule HTTPS连接器上未识别Spring属性,mule,Mule,我正在尝试在Mule中创建一个HTTPS连接器,以便可以作为流的一部分调用HTTPS端点。但是,当我尝试添加sslTypespring属性时,我得到了一个错误 我有一个HTTPS连接器,定义如下: <mule xmlns:db="http://www.mulesoft.org/schema/mule/db" xmlns:core="http://www.mulesoft.org/schema/mule/core" xm

我正在尝试在Mule中创建一个HTTPS连接器,以便可以作为流的一部分调用HTTPS端点。但是,当我尝试添加
sslType
spring属性时,我得到了一个错误

我有一个HTTPS连接器,定义如下:

<mule xmlns:db="http://www.mulesoft.org/schema/mule/db"
        xmlns:core="http://www.mulesoft.org/schema/mule/core"
        xmlns:http="http://www.mulesoft.org/schema/mule/http"
        xmlns:https="http://www.mulesoft.org/schema/mule/https"
        xmlns:context="http://www.springframework.org/schema/context"
        xmlns:jms="http://www.mulesoft.org/schema/mule/jms"
        xmlns:mulexml="http://www.mulesoft.org/schema/mule/xml"
        xmlns="http://www.mulesoft.org/schema/mule/core"
        xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
        xmlns:spring="http://www.springframework.org/schema/beans" version="EE-3.5.2"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:data-mapper="http://www.mulesoft.org/schema/mule/ee/data-mapper"
        xmlns:domain="http://www.mulesoft.org/schema/mule/ee/domain"
        xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/ee/domain http://www.mulesoft.org/schema/mule/ee/domain/current/mule-domain-ee.xsd
http://www.mulesoft.org/schema/mule/db http://www.mulesoft.org/schema/mule/db/current/mule-db.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
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-current.xsd
http://www.mulesoft.org/schema/mule/jms http://www.mulesoft.org/schema/mule/jms/current/mule-jms.xsd
http://www.mulesoft.org/schema/mule/xml http://www.mulesoft.org/schema/mule/xml/current/mule-xml.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/ee/data-mapper http://www.mulesoft.org/schema/mule/ee/data-mapper/current/mule-data-mapper.xsd
http://www.mulesoft.org/schema/mule/https http://www.mulesoft.org/schema/mule/https/current/mule-https.xsd">

...

        <https:connector name="HTTPSConnector" doc:name="HTTPS-Connector"
                cookieSpec="netscape" validateConnections="true" sendBufferSize="0" receiveBufferSize="0" receiveBacklog="0"
                clientSoTimeout="${service.timeout}" serverSoTimeout="60000" socketSoLinger="0">

                <spring:property name="sslType" value="TLSv1.2" />
        </https:connector>

...

我需要做哪些更改才能识别此属性?

如果您使用的是3.5.2版本,则我在3.5.2中运行时不会遇到任何问题。也许在遗漏的片段中还有其他东西?如果
元素中有其他配置未显示在共享代码段中,请确保'spring:property是第一个配置

请注意,即使它可以工作,您也可能会发现与SSL引擎和Java SSL支持相关的一些其他问题,以使它能够与TLS 1.2一起工作。例如,3.5.2只支持Java7。您可能会发现一些错误,在中提到。Mule3.5和Java7都已经走到了生命的尽头


如果您使用的是当前的Mule 3版本,建议此时将Mule 3.9.5作为最新和最好的版本,那么默认支持TLS 1.2。与Mule 4.x相同。话虽如此,您使用的传统HTTP连接器已被弃用多年,建议使用新的HTTP Listener/HTTP Requester替换它。

您使用的是哪个版本的mule?谢谢@aled,我一定有一个不可打印的字符或其他内容。删除了文件并按原样重新创建,问题就消失了!很奇怪
org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'spring:property'. 
One of '{"http://www.mulesoft.org/schema/mule/core":service-overrides, "http://www.mulesoft.org/schema/mule/https":tls-client, "http://www.mulesoft.org/schema/mule/https":tls-key-store, "http://www.mulesoft.org/schema/mule/https":tls-server, "http://www.mulesoft.org/schema/mule/https":tls-protocol-handler}' is expected.