***************************
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的活动冲突造成的。
1条答案
按热度按时间ki0zmccv1#
我想。如果两个框架bean命名定义之间存在冲突,可以尝试自定义其中一个