Error when run Auth service

Blade 未结 1 472
devvy
devvy 剑童 2022-03-04 16:06

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

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.

1条回答
  • 2022-03-08 01:05

    eclipse会有一些问题导致spi机制没有生效,具体解决方案请看如下帖子的回复:https://sns.bladex.cn/q-116.html

    0 讨论(0)
提交回复