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

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日