老师,启动项目报错。
来源:6-14 实现高性能单文件下载和预览-sendfile零拷贝(四)

再坚持坚持一下
2023-08-31
2023-08-31 14:46:25.516 INFO 16748 — [ restartedMain] com.imooc.pan.server.RPanServerLauncher : Starting RPanServerLauncher on DESKTOP-MH6KS31 with PID 16748 (D:\JavaProject\SpringBoot\upload-pan\r-pan\server\target\classes started by BTI-DELL5370-134 in D:\JavaProject\SpringBoot\upload-pan\r-pan)
2023-08-31 14:46:25.523 INFO 16748 — [ restartedMain] com.imooc.pan.server.RPanServerLauncher : No active profile set, falling back to default profiles: default
2023-08-31 14:46:25.691 INFO 16748 — [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set ‘spring.devtools.add-properties’ to ‘false’ to disable
2023-08-31 14:46:25.691 INFO 16748 — [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the ‘logging.level.web’ property to 'DEBUG’
2023-08-31 14:46:27.995 INFO 16748 — [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2023-08-31 14:46:28.002 INFO 16748 — [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2023-08-31 14:46:28.104 INFO 16748 — [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 60ms. Found 0 Redis repository interfaces.
2023-08-31 14:46:28.572 INFO 16748 — [ restartedMain] trationDelegateBeanPostProcessorChecker:Bean′webValidatorConfig′oftype[com.imooc.pan.web.validator.WebValidatorConfigBeanPostProcessorChecker : Bean 'webValidatorConfig' of type [com.imooc.pan.web.validator.WebValidatorConfigBeanPostProcessorChecker:Bean′webValidatorConfig′oftype[com.imooc.pan.web.validator.WebValidatorConfigEnhancerBySpringCGLIBEnhancerBySpringCGLIBEnhancerBySpringCGLIB$1868d05d] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2023-08-31 14:46:28.591 INFO 16748 — [ restartedMain] c.i.p.web.validator.WebValidatorConfig : The hibernate validator is loaded successfully!
2023-08-31 14:46:29.421 INFO 16748 — [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8090 (http)
2023-08-31 14:46:29.433 INFO 16748 — [ restartedMain] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2023-08-31 14:46:29.433 INFO 16748 — [ restartedMain] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.31]
2023-08-31 14:46:29.558 INFO 16748 — [ restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2023-08-31 14:46:29.558 INFO 16748 — [ restartedMain] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 3866 ms
_ _ |_ _ |. ___ _ | _
| | |/|)(| | |\ |)|||\
/ |
3.3.2
2023-08-31 14:46:31.479 WARN 16748 — [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘fileController’: Unsatisfied dependency expressed through field ‘iUserFileService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘userFileService’: Unsatisfied dependency expressed through field ‘iFileService’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘IFileServiceImpl’: Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘com.imooc.pan.storage.engine.core.StorageEngine’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup=, name=, description=, authenticationType=CONTAINER, type=class java.lang.Object, mappedName=)}
2023-08-31 14:46:31.499 INFO 16748 — [ restartedMain] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2023-08-31 14:46:31.516 INFO 16748 — [ restartedMain] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2023-08-31 14:46:31.858 ERROR 16748 — [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :
APPLICATION FAILED TO START
Description:
Field iFileService in com.imooc.pan.server.modules.file.service.impl.UserFileServiceImpl required a bean of type ‘com.imooc.pan.storage.engine.core.StorageEngine’ that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type ‘com.imooc.pan.storage.engine.core.StorageEngine’ in your configuration.
Disconnected from the target VM, address: ‘127.0.0.1:64671’, transport: ‘socket’
Process finished with exit code 1
1回答
-
RubinChu
2023-08-31
文件存储引擎模块看看是不是没有扫描到,刷一下 maven,检查一下依赖配置等等
032023-11-30
相似问题