一、该问题的重现步骤是什么?
1. Install database, redis, nacos
2. Import database, blade.yml, blade-dev.yml
3. run gateway successfully
4. run auth fail!
二、你期待的结果是什么?实际看到的又是什么?
Expect run successfully auth service but failed.
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
i'm using Springblade version 3.2.0 in windows 10 environment with ide eclipse.
四、请提供详细的错误堆栈信息,这很重要。
2022-03-04 14:51:26.842 WARN 26940 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authController' defined in file [D:\Irtech\sourcecoderesearch\microserviceresearch\SpringBlade\blade-auth\target\classes\org\springblade\auth\controller\AuthController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springblade.core.tool.utils.RedisUtil' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
2022-03-04 14:51:26.852 INFO 26940 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-03-04 14:51:26.869 ERROR 26940 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of constructor in org.springblade.auth.controller.AuthController required a bean of type 'org.springblade.core.tool.utils.RedisUtil' that could not be found.
Action:
Consider defining a bean of type 'org.springblade.core.tool.utils.RedisUtil' in your configuration.
五、若有更多详细信息,请在下面提供。
I had imported blade-tool project to support springblade but still cannot run auth.
扫一扫访问 Blade技术社区 移动端