bladex 2.8.0 windows部署 服务启动报错

Blade 未结 1 972
1664087911
1664087911 剑圣 2021-04-19 19:48

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

1. 

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'swaggerAutoConfiguration' defined in URL blade-starter-swagger-2.8.0.RELEASE.jar!/org/springblade/core/swagger/SwaggerAutoConfiguration.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.github.xiaoymin.knife4j.spring.extension.OpenApiExtensionResolver' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}

        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:799)

        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:228)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1356)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1203)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)

        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:897)

        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879)

        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551)

        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)

        at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)

        at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:405)

        at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)

        at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:140)

        at org.springblade.core.launch.BladeApplication.run(BladeApplication.java:50)

        at com.zhonghui.pbc.PbcApplication.main(PbcApplication.java:16)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

        at java.lang.reflect.Method.invoke(Unknown Source)

        at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)

        at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)

        at org.springframework.boot.loader.Launcher.launch(Launcher.java:51)

        at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52)

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.github.xiaoymin.knife4j.spring.extension.OpenApiExtensionResolver' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoMatchingBeanFound(DefaultListableBeanFactory.java:1717)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1273)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227)

        at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:886)

        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:790)

        ... 27 common frames omitted

2. 

3.


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


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

windows bladex2.8.0

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


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

1条回答
  • 检查下knife4j配置是否正确

    (JC%Z]~42N1Q$0VWD$JPLCL.png

    0 讨论(0)
提交回复