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>

 

解决办法


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

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