大屏项目启动不成功

Blade 未结 3 1452
jmx
jmx 剑圣 2021-04-23 17:44

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

1. 下载最新代码。然后将doc下的bladex_visual_mysql.sql在数据库里执行

2. 修改application-dev.yml配置文件

图片.png

3.修改blade_visual_db的类型为mysql的记录也改成上面配置。


二、你期待的结果是什么?实际看到的又是什么?

期待:启动成功

实际:启动不成功

----启动中,读取到的环境变量:[dev],jar地址:[/D:/git/inca/bladex/Caster/blade-service/blade-visual/target/classes/]----
                   ______  _             _       ___   ___
                   | ___ \| |           | |      \  \ /  /
                   | |_/ /| |  __ _   __| |  ___  \  V  /
                   | ___ \| | / _` | / _` | / _ \   > <
                   | |_/ /| || (_| || (_| ||  __/ /  .  \
                   \____/ |_| \__,_| \__,_| \___|/__/ \__\

:: BladeX 2.8.0.RELEASE :: blade-visual:dev :: Running SpringBoot 2.2.13.RELEASE ::

2021-04-23 17:43:34.532  INFO 21840 --- [           main] o.s.modules.visual.VisualApplication     : The following profiles are active: dev
2021-04-23 17:43:38.459  INFO 21840 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2021-04-23 17:43:38.469  INFO 21840 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2021-04-23 17:43:38.607  INFO 21840 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 88ms. Found 0 Redis repository interfaces.
2021-04-23 17:43:39.304  WARN 21840 --- [           main] o.m.s.mapper.ClassPathMapperScanner      : No MyBatis mapper was found in '[org.springblade.modules.visual]' package. Please check your configuration.
2021-04-23 17:43:39.871  INFO 21840 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=0c922744-2652-354a-88d9-ab2b962231a7
2021-04-23 17:43:45.328  WARN 21840 --- [           main] io.undertow.websockets.jsr               : UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used
2021-04-23 17:43:45.448  INFO 21840 --- [           main] io.undertow.servlet                      : Initializing Spring embedded WebApplicationContext
2021-04-23 17:43:45.448  INFO 21840 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 10815 ms
2021-04-23 17:43:45.903  WARN 21840 --- [           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:\git\inca\bladex\Caster\blade-service\blade-visual\target\classes\org\springblade\modules\visual\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.redis.cache.BladeRedis' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
2021-04-23 17:43:45.953  INFO 21840 --- [           main] ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-04-23 17:43:46.590 ERROR 21840 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   :

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 0 of constructor in org.springblade.modules.visual.controller.AuthController required a bean of type 'org.springblade.core.redis.cache.BladeRedis' that could not be found.


Action:

Consider defining a bean of type 'org.springblade.core.redis.cache.BladeRedis' in your configuration.

三、你正在使用的是什么产品,什么版本?在什么操作系统上?


四、请提供详细的错误堆栈信息,这很重要。


五、若有更多详细信息,请在下面提供。

3条回答
  • 2021-04-25 10:04

    提示已经很明显了

    Parameter 0 of constructor in org.springblade.modules.visual.controller.AuthController required a bean of type 'org.springblade.core.redis.cache.BladeRedis' that could not be found.

    Consider defining a bean of type 'org.springblade.core.redis.cache.BladeRedis' in your configuration.

    问题在于没有实例化BladeRedis,如果没有修改过代码,那就是依赖引用的问题,多刷新下maven依赖,然后清空一下工程的缓存。

    1 讨论(0)
  • 0 讨论(0)
  • 2021-04-25 09:20

    不能解决问题。

    0 讨论(0)
提交回复