无法注册在类路径资源[org/activiti/spring/boot/methodsecurityconfig.class]中定义的bean“methodsecurityinterceptor”

yvt65v4c  于 2021-07-13  发布在  Java
关注(0)|答案(1)|浏览(468)

***************************

APPLICATION FAILED TO START

***************************

Description:

The bean 'methodSecurityInterceptor', defined in class path resource [org/activiti/spring/boot/MethodSecurityConfig.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/security/config/annotation/method/configuration/GlobalMethodSecurityConfiguration.class] and overriding is disabled.

Action:

Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

我使用springboot2.2.12、springsecurity 5.2.8和activiti7.1.0.m4,然后得到错误。
我认为这可能是由于与springsecurity的活动冲突造成的。

ki0zmccv

ki0zmccv1#

我想。如果两个框架bean命名定义之间存在冲突,可以尝试自定义其中一个

相关问题