Spring Integration Extensions 版本發布

版本發布 | Artem Bilan | 2019 年 11 月 06 日 | ...

親愛的 Spring 社群:

應社群成員的多次要求,我很榮幸地宣布一些 Spring Integration Extensions 已經更新到最新版本,並採用了最新的相依性。首先,非常感謝大家的貢獻,即使只是在 GitHub 上提出 issue 或在 StackOverflow 上提問!

以下是這些專案的重點。它們都可以在 Maven Central、JCenter 和 Spring Release 儲存庫中取得。由於這些專案都不是 Spring Integration BOM 的一部分 (而且由於發布週期不同,它們也不可能成為 BOM 的一部分),因此您必須在相依性管理中明確指定它們的版本。

Spring Integration SMB

Spring Integration 對 Server Message Block 的支援已達到 1.2.0.RELEASE 版本,並且基於 Spring Integration 5.2.1.RELEASE 和 JCIFS 2.1.11。除了升級之外,我們還有社群貢獻的功能,可以在 SmbSessionFactory 中使用 jcifs.CIFSContext 介面的自定義實作。此 artifact 的相依性如下

org.springframework.integration:spring-integration-smb:1.2.0.RELEASE

Spring Integration Cassandra

Spring Integration 對 Apache Cassandra 的支援已達到 0.7.0.RELEASE 版本,並且基於 Spring Integration 5.2.1.RELEASE 和 Spring Data Moore-SR1。除了升級之外,CassandraMessageHandler 實作完全是反應式的,並在 async 和 gateway 模式中產生 Mono<WriteResult> 回覆。否則,如果不是 async 或是我們對回覆不感興趣,則會在內部發生訂閱或 block()。此 artifact 的相依性如下

org.springframework.integration:spring-integration-cassandra:0.7.0.RELEASE

Spring Integration Hazelcast

Spring Integration 對 Hazelcast 的支援已達到 2.0.0.RELEASE 版本,並且基於 Spring Integration 5.2.1.RELEASE 和 Hazelcast 3.12.4。在這個主要的新版本中,我們已經針對最新的 Hazelcast 和 Spring Integration 相容性重新設計了一些內部結構。此 artifact 的相依性如下

org.springframework.integration:spring-integration-hazelcast:2.0.0.RELEASE

Spring Integration Kotlin DSL

Spring Integration Kotlin DSL 已經過徹底修改,並以 0.0.2.RELEASE 版本發布。它基於 Spring Integration 5.2.1.RELEASE & Kotlin 1.3.50KotlinIntegrationFlowDefinition 實作 & @BuilderInference 標記,用於 integrationFlow() 全域函數中的 lambda,使目標整合流程定義更加簡潔且 Kotlin 友善

@Bean
fun flowLambda() =
    integrationFlow {
        filter<String>({ it === "test" })
        wireTap(
                integrationFlow {
                    handle { m -> println(m.payload) }
                })
        transform<String, String>({ it.toUpperCase() })
    }

此 artifact 的相依性如下

org.springframework.integration:spring-integration-kotlin-dsl:0.0.2.RELEASE

Spring Integration Kafka

Spring Integration 對 Apache Kafka 的支援也已發布為 3.2.1.RELEASE 版本,其中包含所有最新的 Spring Integration 和 Spring for Apache Kafka 版本。現在可以將 ProducerRecordCreator 策略注入到 KafkaProducerMessageHandler 中,以分別創建自定義 ProducerRecord。同樣,ProducerRecord 現在也可以在請求消息 payload 中出現。此 artifact 的相依性如下

org.springframework.integration:spring-integration-kafka:3.2.1.RELEASE

一如既往,我們歡迎透過任何可用的溝通管道提供回饋!

專案頁面 | GitHub Issues | 求助 | 聊天

取得 Spring 電子報

隨時關注 Spring 電子報

訂閱

領先一步

VMware 提供培訓和認證,以加速您的進度。

了解更多

取得支援

Tanzu Spring 在一個簡單的訂閱中提供 OpenJDK™、Spring 和 Apache Tomcat® 的支援和二進位檔案。

了解更多

即將到來的活動

查看 Spring 社群中所有即將舉行的活動。

查看全部