springsecurity methodSecurityInterceptor

springboot2 + springsecurity + activiti7时出现如下提示

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
根据提示需要在application.properties中加上


spring.main.allow-bean-definition-overriding=true

猜你喜欢

转载自www.cnblogs.com/modestlin/p/11267599.html
今日推荐