新建的微服务启动一直报错

Blade 未结 1 134
xiaomin
xiaomin 剑者 2024-09-30 10:43

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

1. 新建的微服务 没有用liteflow,但是启动一直报错

2. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liteflowExecutorInit' defined in class path resource [com/yomahub/liteflow/springboot/config/LiteflowMainAutoConfiguration.class]: init flow executor cause error for path [liteflow/*.el.xml],reason: [tenantDeptRule] is not exist or [tenantDeptRule] is not registered, you need to define a node or chain with id [tenantDeptRule] and register it
 EL: THEN(tenantRule,WHEN(tenantRoleRule,tenantRoleMenuRule,tenantDeptRule,tenantPostRule,tenantDictBizRule,tenantUserRule));
                                                            ^
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1788)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:600)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:337)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:975)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:962)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:335)
    at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:149)
    at org.springblade.core.launch.BladeApplication.run(BladeApplication.java:59)
    at org.springblade.gr.GrApplication.main(GrApplication.java:41)
Caused by: com.yomahub.liteflow.exception.FlowExecutorNotInitException: init flow executor cause error for path [liteflow/*.el.xml],reason: [tenantDeptRule] is not exist or [tenantDeptRule] is not registered, you need to define a node or chain with id [tenantDeptRule] and register it
 EL: THEN(tenantRule,WHEN(tenantRoleRule,tenantRoleMenuRule,tenantDeptRule,tenantPostRule,tenantDictBizRule,tenantUserRule));
                                                            ^
    at com.yomahub.liteflow.core.FlowExecutor.init(FlowExecutor.java:184)
    at com.yomahub.liteflow.springboot.LiteflowExecutorInit.afterPropertiesSet(LiteflowExecutorInit.java:22)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1835)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1784)
    ... 16 common frames omitted

3.


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


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

4.1  windows

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


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

1条回答
  • 2024-09-30 10:45

    新建的微服务根目录的pom.xml发出来看看。如果引入了blade-system这个包,昨天已经和你说过了,不要引入。你要引入blade-system还不如直接在blade-system里写业务代码。你新建的微服务是和system同级别的,只引入blade-core-boot这种底层的依赖。

    如果你已经把blade-system的依赖删了,那就重新刷新工程的依赖,然后执行打包命令:mvn clean package -DskipTests 


    CleanShot20240930104731@2x.png

    CleanShot20240930104818@2x.png

    0 讨论(0)
提交回复