The bean 'methodSecurityInterceptor', defined in class path resource [org/activiti/spring/boot/Metho

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

发布了19 篇原创文章 · 获赞 2 · 访问量 721

猜你喜欢

转载自blog.csdn.net/qq_40977118/article/details/105041294