dengkz 2022-07-03 11:48 采纳率: 0%
浏览 13

flowable AnnotationConfigServletWebServerApplicationContext

错误信息:

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

Description:

Field modelService in com.qifeng.flowable.service.impl.FlowableServiceImpl required a bean of type 'org.flowable.ui.modeler.service.ModelServiceImpl' that could not be found.

The injection point has the following annotations:
    - @org.springframework.beans.factory.annotation.Autowired(required=true)


Action:

Consider defining a bean of type 'org.flowable.ui.modeler.service.ModelServiceImpl' in your configuration.

ModelServiceImpl这个类已根据依赖引用到项目了

-------------------------------------------------------
出错处代码:

import org.flowable.ui.modeler.service.ModelServiceImpl;
@Slf4j
@Service
public class FlowableServiceImpl implements FlowableService {
@Autowired
private ModelServiceImpl modelService;
.......

 

-------------------------------------------------------
POM:

<dependency>
    <groupId>org.flowable</groupId>
    <artifactId>flowable-spring-boot-starter</artifactId>
    <version>${flowable.version}</version>
</dependency>
<dependency>
    <groupId>org.flowable</groupId>
    <artifactId>flowable-ui-modeler-logic</artifactId>
    <version>6.7.2</version>
</dependency>
<dependency>
    <groupId>org.flowable</groupId>
    <artifactId>flowable-ui-modeler-conf</artifactId>
    <version>${flowable.version}</version>
</dependency>

<dependency>
    <groupId>org.flowable</groupId>
    <artifactId>flowable-ui-modeler-rest</artifactId>
    <version>${flowable.version}</version>
</dependency>
  • 写回答

1条回答 默认 最新

  • 喵喵@香菜 2022-07-04 00:02
    关注

    解决办法

    
    @SpringBootApplication(scanBasePackages = {"com.demo")
    

    添加基础扫描包路径,解决项目多模块无法注入bean问题

    评论

报告相同问题?

问题事件

  • 创建了问题 7月3日

悬赏问题

  • ¥15 c++ gmssl sm2验签demo
  • ¥15 关于模的完全剩余系(关键词-数学方法)
  • ¥15 有没有人懂这个博图程序怎么写,还要跟SFB连接,真的不会,求帮助
  • ¥30 模拟电路 logisim
  • ¥15 PVE8.2.7无法成功使用a5000的vGPU,什么原因
  • ¥15 is not in the mmseg::model registry。报错,模型注册表找不到自定义模块。
  • ¥15 安装quartus II18.1时弹出此error,怎么解决?
  • ¥15 keil官网下载psn序列号在哪
  • ¥15 想用adb命令做一个通话软件,播放录音
  • ¥30 Pytorch深度学习服务器跑不通问题解决?