问题场景:
SpringBoot整合Activity报错:
class path resource [org/springframework/security/config/annotation/authentication/configurers/GlobalAuthenticationConfigurerAdapter.class] cannot be opened because it does not exist
详细报错如下
Caused by: java.io.FileNotFoundException:class path resource [org/springframework/security/config/annotation/authentication/configurers/GlobalAuthenticationConfigurerAdapter.class] cannot be opened because it does not exist
解决方案:
在启动类上排除activiti自带的SecurityAutoConfiguration配置依赖,问题成功解决
@SpringBootApplication(exclude={
org.activiti.spring.boot.SecurityAutoConfiguration.class,
SecurityAutoConfiguration.class
})