Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payment启动报错 #50

Open
RedCarl opened this issue Jun 20, 2023 · 1 comment
Open

Payment启动报错 #50

RedCarl opened this issue Jun 20, 2023 · 1 comment

Comments

@RedCarl
Copy link

RedCarl commented Jun 20, 2023

Description:

Parameter 0 of constructor in com.jeequan.jeepay.pay.config.SwaggerConfiguration required a bean of type 'com.github.xiaoymin.knife4j.spring.extension.OpenApiExtensionResolver' that could not be found.

Action:

Consider defining a bean of type 'com.github.xiaoymin.knife4j.spring.extension.OpenApiExtensionResolver' in your configuration.

@RedCarl
Copy link
Author

RedCarl commented Jun 20, 2023

`2023-06-20 11:44:23.143 INFO [background-preinit] [o.h.v.i.u.Version] - HV000001: Hibernate Validator 6.1.7.Final
2023-06-20 11:44:23.255 INFO [main] [c.j.j.p.b.JeepayPayApplication] - Starting JeepayPayApplication v2.2.0 using Java 1.8.0_371 on VM-12-7-centos with PID 21983 (/data/jeepay/payment/jeepay-payment.jar started by root in /data/jeepay/payment)
2023-06-20 11:44:23.257 DEBUG [main] [c.j.j.p.b.JeepayPayApplication] - Running with Spring Boot v2.4.8, Spring v5.3.8
2023-06-20 11:44:23.258 INFO [main] [c.j.j.p.b.JeepayPayApplication] - No active profile set, falling back to default profiles: default
2023-06-20 11:44:25.806 INFO [main] [o.s.d.r.c.RepositoryConfigurationDelegate] - Multiple Spring Data modules found, entering strict repository configuration mode!
2023-06-20 11:44:25.811 INFO [main] [o.s.d.r.c.RepositoryConfigurationDelegate] - Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2023-06-20 11:44:25.839 INFO [main] [o.s.d.r.c.RepositoryConfigurationDelegate] - Finished Spring Data repository scanning in 10 ms. Found 0 Redis repository interfaces.
2023-06-20 11:44:27.243 INFO [main] [o.s.b.w.e.t.TomcatWebServer] - Tomcat initialized with port(s): 9216 (http)
2023-06-20 11:44:27.261 INFO [main] [o.a.c.h.Http11NioProtocol] - Initializing ProtocolHandler ["http-nio-9216"]
2023-06-20 11:44:27.262 INFO [main] [o.a.c.c.StandardService] - Starting service [Tomcat]
2023-06-20 11:44:27.262 INFO [main] [o.a.c.c.StandardEngine] - Starting Servlet engine: [Apache Tomcat/9.0.48]
2023-06-20 11:44:27.350 INFO [main] [o.a.c.c.C.[.[.[/]] - Initializing Spring embedded WebApplicationContext
2023-06-20 11:44:27.351 INFO [main] [o.s.b.w.s.c.ServletWebServerApplicationContext] - Root WebApplicationContext: initialization completed in 3888 ms
2023-06-20 11:44:27.601 INFO [main] [c.a.d.s.b.a.DruidDataSourceAutoConfigure] - Init DruidDataSource
2023-06-20 11:44:28.228 INFO [main] [c.a.d.p.DruidDataSource] - {dataSource-1} inited
2023-06-20 11:44:28.711 WARN [main] [o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'swaggerConfiguration' defined in URL [jar:file:/data/jeepay/payment/jeepay-payment.jar!/BOOT-INF/classes!/com/jeequan/jeepay/pay/config/SwaggerConfiguration.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: {}
2023-06-20 11:44:28.712 INFO [main] [c.a.d.p.DruidDataSource] - {dataSource-1} closing ...
2023-06-20 11:44:28.726 INFO [main] [c.a.d.p.DruidDataSource] - {dataSource-1} closed
2023-06-20 11:44:28.730 INFO [main] [o.a.c.c.StandardService] - Stopping service [Tomcat]
2023-06-20 11:44:28.757 INFO [main] [o.s.b.a.l.ConditionEvaluationReportLoggingListener] -

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-06-20 11:44:28.785 ERROR [main] [o.s.b.d.LoggingFailureAnalysisReporter] -


APPLICATION FAILED TO START


Description:

Parameter 0 of constructor in com.jeequan.jeepay.pay.config.SwaggerConfiguration required a bean of type 'com.github.xiaoymin.knife4j.spring.extension.OpenApiExtensionResolver' that could not be found.

Action:

Consider defining a bean of type 'com.github.xiaoymin.knife4j.spring.extension.OpenApiExtensionResolver' in your configuration.`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant