该版本包含 20 处的改进和修复,主页更新内容如下:
Java DSL 解析器填充的组件现在在应用程序上下文中注册为 BeanDefinitions[code] IntegrationFlows.from(Class> serviceInterface) 现在使用附加的 beanName 参数重载版本
@Bean
public IntegrationFlow uppercaseFlow() {
return IntegrationFlows.from(MessageFunction.class, "uppercase")
.
.get();
}[/code]HTTP 入站端点(包括WebFlux)现在可以正确处理回复消息中的 ResponseEntity:[code]@Bean
public WebFluxInboundEndpoint errorInboundEndpoint() {
WebFluxInboundEndpoint endpoint = new WebFluxInboundEndpoint();
RequestMapping requestMapping = new RequestMapping();
requestMapping.setPathPatterns("/error");
endpoint.setRequestMapping(requestMapping);
endpoint.setRequestChannelName("errorServiceChannel");
return endpoint;
}
@ServiceActivator(inputChannel = "errorServiceChannel")
public ResponseEntity
return new ResponseEntity<>("<500 Internal Server Error,{}>",
HttpStatus.INTERNAL_SERVER_ERROR);
}[/code]软件详情:https://spring.io/blog/2017/11/01/spring-integration-5-0-release-candidate-1-available
来自:开源中国社区

