解决:SpringBoot集成Activi启动时报错:nested exception is java.io.FileNotFoundException: class path resource

我使用的activi版本为5.22.0 依赖如下:
在这里插入图片描述

报错如下:

[org/springframework/security/config/annotation/authentication/configurers/GlobalAuthenticationConfigurerAdapter.class] cannot be opened because it does not exist
解决:SpringBoot集成Activi启动时报错:nested exception is java.io.FileNotFoundException: class path resource_第1张图片

解决办法:

启动项上方@SpringBootApplication注解里面加exclude = SecurityAutoConfiguration.class

@SpringBootApplication(exclude = SecurityAutoConfiguration.class)

注意:SecurityAutoConfiguration.class导入的包是 activiti的

  • 正确的
import org.activiti.spring.boot.SecurityAutoConfiguration;
  • 错误的
 import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration

你可能感兴趣的:(Activi,exce)