一、该问题的重现步骤是什么?
1.下载springblade的2.0-boot分支。
2.在项目中新建了package,在里面复制了一个Application。
3.启动Application报错。
二、你期待的结果是什么?实际看到的又是什么?
我期待启动成功。实际上报错了,启动日志如下:
----启动中,读取到的环境变量:[dev],jar地址:[/Users/lionel/Downloads/SpringBlade/target/classes/]----
_____ _ ______ _ _
/ ___| (_) | ___ \| | | |
\ `--. _ __ _ __ _ _ __ __ _ | |_/ /| | __ _ __| | ___
`--. \| '_ \ | '__|| || '_ \ / _` | | ___ \| | / _` | / _` | / _ \
/\__/ /| |_) || | | || | | || (_| | | |_/ /| || (_| || (_| || __/
\____/ | .__/ |_| |_||_| |_| \__, | \____/ |_| \__,_| \__,_| \___|
| | __/ |
|_| |___/
:: SpringBlade :: blade-api:dev :: Running SpringBoot 2.2.2.RELEASE ::
2020-01-05 22:50:43.159 INFO 49926 --- [ main] cn.com.test.TestApplication : Starting TestApplication on lionel-MBP with PID 49926 (/Users/lionel/Downloads/SpringBlade/target/classes started by lionel in /Users/lionel/Downloads/SpringBlade)
2020-01-05 22:50:43.162 INFO 49926 --- [ main] cn.com.test.TestApplication : The following profiles are active: dev
2020-01-05 22:50:44.223 INFO 49926 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2020-01-05 22:50:44.225 INFO 49926 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2020-01-05 22:50:44.249 INFO 49926 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 5ms. Found 0 Redis repository interfaces.
2020-01-05 22:50:44.341 WARN 49926 --- [ main] o.m.s.mapper.ClassPathMapperScanner : No MyBatis mapper was found in '[cn.com.test]' package. Please check your configuration.
2020-01-05 22:50:45.099 WARN 49926 --- [ main] io.undertow.websockets.jsr : UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used
2020-01-05 22:50:45.117 INFO 49926 --- [ main] io.undertow.servlet : Initializing Spring embedded WebApplicationContext
2020-01-05 22:50:45.117 INFO 49926 --- [ main] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 1910 ms
2020-01-05 22:50:45.337 INFO 49926 --- [ main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
2020-01-05 22:50:45.418 INFO 49926 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
2020-01-05 22:50:46.235 INFO 49926 --- [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoint(s) beneath base path '/actuator'
2020-01-05 22:50:46.577 INFO 49926 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2020-01-05 22:50:47.398 INFO 49926 --- [ main] o.s.core.boot.config.RetryConfiguration : configServerRetryInterceptor: Changing backOffOptions to initial: 1000, multiplier: 1.2, maxInterval: 5000
2020-01-05 22:50:47.422 WARN 49926 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springblade.core.log.config.BladeLogToolAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springblade.modules.system.service.ILogService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
2020-01-05 22:50:47.423 INFO 49926 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
2020-01-05 22:50:47.434 INFO 49926 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
2020-01-05 22:50:47.435 INFO 49926 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
2020-01-05 22:50:47.446 INFO 49926 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-01-05 22:50:47.590 ERROR 49926 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of constructor in org.springblade.core.log.config.BladeLogToolAutoConfiguration required a bean of type 'org.springblade.modules.system.service.ILogService' that could not be found.
Action:
Consider defining a bean of type 'org.springblade.modules.system.service.ILogService' in your configuration.
Disconnected from the target VM, address: '127.0.0.1:59325', transport: 'socket'
Process finished with exit code 1
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
springBoot版,版本号2.6.0,macOS系统
扫一扫访问 Blade技术社区 移动端