Flowable-Design启动报错

Blade 未结 2 1708
Reid
Reid 2020-04-22 16:38

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

1. 发布oracle.sql文件正常,

2. 修改配置文件

3.启动报错


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



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

版本:,win10.

org.springbladeFlowable-Design2.5.0.RELEASEFlowable-Designflowable engine


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


Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.

2020-04-22 16:36:20.124 ERROR 11132 --- [           main] o.s.boot.SpringApplication               : Application run failed


org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/web/servlet/config/annotation/DelegatingWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'editorGroupsResource' method 

public org.flowable.ui.common.model.ResultListDataRepresentation org.flowable.ui.modeler.rest.app.EditorGroupsResource.getGroups(java.lang.String)

to {GET /app/rest/editor-groups}: There is already 'editorGroupsController' bean method

public org.flowable.ui.common.model.ResultListDataRepresentation org.springblade.flow.controller.EditorGroupsController.getGroups(java.lang.String) mapped.

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1771) ~[spring-beans-5.1.14.RELEASE.jar:5.1.14.RELEASE]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593) ~[spring-beans-5.1.14.RELEASE.jar:5.1.14.RELEASE]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.14.RELEASE.jar:5.1.14.RELEASE]

at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.14.RELEASE.jar:5.1.14.RELEASE]

at org.springframework.beans.factory.support.AbstractBeanFactory$$Lambda$151/242408359.getObject(Unknown Source) ~[na:na]

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.14.RELEASE.jar:5.1.14.RELEASE]

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.14.RELEASE.jar:5.1.14.RELEASE]

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.14.RELEASE.jar:5.1.14.RELEASE]

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:847) ~[spring-beans-5.1.14.RELEASE.jar:5.1.14.RELEASE]

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) ~[spring-context-5.1.14.RELEASE.jar:5.1.14.RELEASE]

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.1.14.RELEASE.jar:5.1.14.RELEASE]

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~[spring-boot-2.1.13.RELEASE.jar:2.1.13.RELEASE]

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:744) ~[spring-boot-2.1.13.RELEASE.jar:2.1.13.RELEASE]

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:391) ~[spring-boot-2.1.13.RELEASE.jar:2.1.13.RELEASE]

at org.springframework.boot.SpringApplication.run(SpringApplication.java:312) ~[spring-boot-2.1.13.RELEASE.jar:2.1.13.RELEASE]

at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:140) [spring-boot-2.1.13.RELEASE.jar:2.1.13.RELEASE]

at org.springblade.core.launch.BladeApplication.run(BladeApplication.java:49) [blade-core-launch-2.5.0.RELEASE.jar:na]

at org.springblade.flow.FlowDesignApplication.main(FlowDesignApplication.java:50) [classes/:na]

Caused by: java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'editorGroupsResource' method 

public org.flowable.ui.common.model.ResultListDataRepresentation org.flowable.ui.modeler.rest.app.EditorGroupsResource.getGroups(java.lang.String)

to {GET /app/rest/editor-groups}: There is already 'editorGroupsController' bean method

public org.flowable.ui.common.model.ResultListDataRepresentation org.springblade.flow.controller.EditorGroupsController.getGroups(java.lang.String) mapped.

at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.assertUniqueMethodMapping(AbstractHandlerMethodMapping.java:619) ~[spring-webmvc-5.1.14.RELEASE.jar:5.1.14.RELEASE]

at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:587) ~[spring-webmvc-5.1.14.RELEASE.jar:5.1.14.RELEASE]

at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.registerHandlerMethod(AbstractHandlerMethodMapping.java:313) ~[spring-webmvc-5.1.14.RELEASE.jar:5.1.14.RELEASE]

at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.lambda$detectHandlerMethods$1(AbstractHandlerMethodMapping.java:283) ~[spring-webmvc-5.1.14.RELEASE.jar:5.1.14.RELEASE]

at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$$Lambda$376/1836184214.accept(Unknown Source) ~[na:na]

at java.util.LinkedHashMap.forEach(LinkedHashMap.java:676) ~[na:1.8.0_25]

at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.detectHandlerMethods(AbstractHandlerMethodMapping.java:281) ~[spring-webmvc-5.1.14.RELEASE.jar:5.1.14.RELEASE]

at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.processCandidateBean(AbstractHandlerMethodMapping.java:253) ~[spring-webmvc-5.1.14.RELEASE.jar:5.1.14.RELEASE]

at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.initHandlerMethods(AbstractHandlerMethodMapping.java:212) ~[spring-webmvc-5.1.14.RELEASE.jar:5.1.14.RELEASE]

at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.afterPropertiesSet(AbstractHandlerMethodMapping.java:200) ~[spring-webmvc-5.1.14.RELEASE.jar:5.1.14.RELEASE]

at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.afterPropertiesSet(RequestMappingHandlerMapping.java:165) ~[spring-webmvc-5.1.14.RELEASE.jar:5.1.14.RELEASE]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1830) ~[spring-beans-5.1.14.RELEASE.jar:5.1.14.RELEASE]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1767) ~[spring-beans-5.1.14.RELEASE.jar:5.1.14.RELEASE]

... 17 common frames omitted


Disconnected from the target VM, address: '127.0.0.1:52569', transport: 'socket'


Process finished with exit code 1

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



2条回答
  •  zhx1994
    zhx1994 (楼主)
    2020-04-22 16:47

    4OIJ793IZV7C7@NS0VIC~0M.png

    直接导入的代码是没有问题的,这个问题除非你重写过EditorGroupsResource的接口会报这个错

提交回复