项目启动报错,但是又不清楚哪里初始化出问题,请帮一下忙!

Blade 已结 1 2836
lph279430114
lph279430114 剑童 2020-03-20 22:44

一、该问题的重现步骤是什么?

1. 用main方法启动,没其他操作步骤

2. 

3.


二、你期待的结果是什么?实际看到的又是什么?

正常启动项目


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

org.springblade
SpringBlade
2.6.2
pom


四、请提供详细的错误堆栈信息,这很重要。

2020-03-20 22:41:15.360  WARN 1916 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: 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

2020-03-20 22:41:15.365  INFO 1916 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Shutting down ExecutorService 'applicationTaskExecutor'

2020-03-20 22:41:15.385  INFO 1916 --- [           main] o.s.s.c.ThreadPoolTaskScheduler          : Shutting down ExecutorService 'taskScheduler'

2020-03-20 22:41:15.434  INFO 1916 --- [           main] ConditionEvaluationReportLoggingListener : 


Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.

2020-03-20 22:41:15.444 ERROR 1916 --- [           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

at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:185) ~[spring-context-5.2.4.RELEASE.jar:5.2.4.RELEASE]

at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:53) ~[spring-context-5.2.4.RELEASE.jar:5.2.4.RELEASE]

at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:360) ~[spring-context-5.2.4.RELEASE.jar:5.2.4.RELEASE]

at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:158) ~[spring-context-5.2.4.RELEASE.jar:5.2.4.RELEASE]

at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:122) ~[spring-context-5.2.4.RELEASE.jar:5.2.4.RELEASE]

at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:894) ~[spring-context-5.2.4.RELEASE.jar:5.2.4.RELEASE]

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:162) ~[spring-boot-2.2.5.RELEASE.jar:2.2.5.RELEASE]

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:553) ~[spring-context-5.2.4.RELEASE.jar:5.2.4.RELEASE]

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~[spring-boot-2.2.5.RELEASE.jar:2.2.5.RELEASE]

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) ~[spring-boot-2.2.5.RELEASE.jar:2.2.5.RELEASE]

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.2.5.RELEASE.jar:2.2.5.RELEASE]

at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.2.5.RELEASE.jar:2.2.5.RELEASE]

at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:140) [spring-boot-2.2.5.RELEASE.jar:2.2.5.RELEASE]

at org.springblade.core.launch.BladeApplication.run(BladeApplication.java:49) [blade-core-launch-2.6.2.jar:na]

at org.springblade.auth.AuthApplication.main(AuthApplication.java:34) [classes/:na]

Caused by: java.lang.IllegalArgumentException: A default binder has been requested, but there is no binder available

at org.springframework.util.Assert.notEmpty(Assert.java:549) ~[spring-core-5.2.4.RELEASE.jar:5.2.4.RELEASE]

at org.springframework.cloud.stream.binder.DefaultBinderFactory.doGetBinder(DefaultBinderFactory.java:144) ~[spring-cloud-stream-3.0.2.RELEASE.jar:3.0.2.RELEASE]

at org.springframework.cloud.stream.binder.DefaultBinderFactory.getBinder(DefaultBinderFactory.java:134) ~[spring-cloud-stream-3.0.2.RELEASE.jar:3.0.2.RELEASE]

at org.springframework.cloud.stream.binding.BindingService.getBinder(BindingService.java:362) ~[spring-cloud-stream-3.0.2.RELEASE.jar:3.0.2.RELEASE]

at org.springframework.cloud.stream.binding.BindingService.bindProducer(BindingService.java:257) ~[spring-cloud-stream-3.0.2.RELEASE.jar:3.0.2.RELEASE]

at org.springframework.cloud.stream.binding.AbstractBindableProxyFactory.createAndBindOutputs(AbstractBindableProxyFactory.java:136) ~[spring-cloud-stream-3.0.2.RELEASE.jar:3.0.2.RELEASE]

at org.springframework.cloud.stream.binding.OutputBindingLifecycle.doStartWithBindable(OutputBindingLifecycle.java:58) ~[spring-cloud-stream-3.0.2.RELEASE.jar:3.0.2.RELEASE]

at java.util.LinkedHashMap$LinkedValues.forEach(LinkedHashMap.java:608) ~[na:1.8.0_181]

at org.springframework.cloud.stream.binding.AbstractBindingLifecycle.start(AbstractBindingLifecycle.java:57) ~[spring-cloud-stream-3.0.2.RELEASE.jar:3.0.2.RELEASE]

at org.springframework.cloud.stream.binding.OutputBindingLifecycle.start(OutputBindingLifecycle.java:34) ~[spring-cloud-stream-3.0.2.RELEASE.jar:3.0.2.RELEASE]

at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:182) ~[spring-context-5.2.4.RELEASE.jar:5.2.4.RELEASE]

... 14 common frames omitted


Disconnected from the target VM, address: '127.0.0.1:53429', transport: 'socket'


Process finished with exit code 1


五、若有更多详细信息,请在下面提供。

操作系统用的是macOS,并且发现无法读取

${blade.datasource.dev.url}等里面的配置的值,我直接修改了项目内application-dev.yml尝试先启动就遇到这个错误了。


1条回答
  •  smallchill
    smallchill (最佳回答者)
    2020-03-21 14:30

    nacos有很多配置也要有,参考下这个帖子,看看是否遗漏了东西:https://sns.bladex.cn/q-41.html

    0 讨论(1)
提交回复