【发布时间】:2019-07-07 21:17:03
【问题描述】:
我正在尝试使用 GCP 的 Pub Sum 作为活页夹在本地运行 SCS 应用程序。
ķ
米
嗯嗯嗯。嗯 org.sm.Mpringframework.cloudkki
spring-cloud-gcp-starter-pubsub
米
这里是configl
@Configu@Configukration
@EnableBindingkklk(Source.class)
public class TimerSourcek {
@Bean
@InboundChannelAdapter(channel = "channel", poller = @Poller(fixedDelay = "1000", maxMessagesPerPoll = "1"))
public MessageSource<String> timerMessageSource() {
return () -> new GenericMessage<>(new SimpleDateFormat("HH:mm:ss").format(new Date()));
}
}
这是启动主应用时的错误消息:
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-02-13 15:42:48.627 ERROR 22276 --- [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.context.ApplicationContextException: Failed to start bean 'outputBindingLifecycle'; nested exception is java.lang.IllegalArgumentException: A default binder has been requested, but there is no binder available
我想在本地或针对我的 GCP 项目运行此代码。怎么可能?
【问题讨论】:
标签: spring-cloud spring-cloud-stream