我有一个简单的问题 - MicroService(Spring Boot应用程序)是否可能同时是一个源和一个接收器 - 因此在一个微服务中可能会有一个类用
注释@StreamListener
另一个microService类用
注释$headers = 1..5|%{"H{0}" -f $_}
$Csv = Import-Csv $infile -Header $Headers
$Csv|ft -auto
ForEach ($Row in $Csv) {
$Row.H3 = $Row.H3 -Replace ' '
}
$CSV | ConvertTo-CSV -NoType | Select -Skip 1 | Set-Content $outfile
答案 0 :(得分:0)
是的,有可能。您应该正确配置它们的绑定。
您甚至可以使用不同的活页夹:https://docs.spring.io/spring-cloud-stream/docs/Chelsea.SR2/reference/htmlsingle/index.html#multiple-systems!
将Microsoft服务的source
和sink
功能视为应用程序的 ports 。所以,你可能有几个,每个都可以执行独立的逻辑。
只有您无法在Spring Cloud Data Flow中使用此自定义Spring Cloud Stream应用程序的问题。有必要遵循特定的命名和结构惯例。