将Activiti集成到JHipster项目 [英] Integrate Activiti to JHipster Project
问题描述
我正在按照此处的说明将Activiti集成到JHipster项目中:开始使用Activiti和Spring Boot 。
I am trying to integrate Activiti to the JHipster Project following the instruction here : getting started with activiti and spring boot.
我面临的一些例外:
- 'userResource'类中的冲突:
- conflict in 'userResource' class:
注解指定的bean名称bean的'userResource'类
[org.activiti.rest.service.api.identity.UserResource]与
具有相同名称和类
的现有非兼容bean定义冲突[com.activiti.demo3.web .rest.UserResource]
Annotation-specified bean name 'userResource' for bean class [org.activiti.rest.service.api.identity.UserResource] conflicts with existing, non-compatible bean definition of same name and class [com.activiti.demo3.web.rest.UserResource]
到目前为止,我已重命名了userResource类来自jhipster,但我无法找出以下异常。
For now I have renamed the userResource class that comes from jhipster, but I am not able to figure out the exception below.
- @WebSecurityConfigurers上的@Order必须唯一:
使用名称创建bean时出错
‘org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration:
自动连接依赖项注入失败;嵌套的异常是
java.lang.IllegalStateException:WebSecurityConfigurers
上的@Order必须是唯一的。已使用100的订单,因此不能在
上使用org.activiti.spring.boot.RestApiAutoConfiguration$SecurityConfiguration$$EnhancerBySpringCGLIB$$320e2174@6b277aed
。
Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Injection of autowired dependencies failed; nested exception is java.lang.IllegalStateException: @Order on WebSecurityConfigurers must be unique. Order of 100 was already used, so it cannot be used on org.activiti.spring.boot.RestApiAutoConfiguration$SecurityConfiguration$$EnhancerBySpringCGLIB$$320e2174@6b277aed too.
任何建议或指针都会很有帮助。
Any suggestion or pointers would be really helpful. Thanks in advance.
推荐答案
将 @Order(99)
添加到JHipster生成的WebConfigurer类,等于或小于99。 100。
Add @Order(99)
to the WebConfigurer class that JHipster generated, 99 or any number < 100.
这篇关于将Activiti集成到JHipster项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!