В предыдущей версии я часто автоматически подключал NullChannel посредством внедрения зависимостей, а затем использовал его в своем IntegrationFlow.
Код: Выделить всё
@Component
@RequiredArgsConstructor
public class PipelineFlow {
private final NullChannel nullChannel;
@Bean
public IntegrationFlow MyFlow() {
return IntegrationFlow
.from(myChannel)
// filter, handle, etc.
.route(MyMessage.class,
MyMessage::getType,
mapping -> mapping
// channel mappings
.defaultOutputChannel(nullChannel)
)
}
}
Код: Выделить всё
Unsatisfied dependency expressed through constructor parameter 10: No qualifying bean of type 'org.springframework.messaging.MessageChannel' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Qualifier("nullChannel")}Подробнее здесь: https://stackoverflow.com/questions/798 ... ing-boot-4
Мобильная версия