nested exception is java.io.FileNotFoundException: class path resource [org/springframework/security

nested exception is java.io.FileNotFoundException: class path resource [org/springframework/security/config/annotation/authentication/configurers/GlobalAuthenticationConfigurerAdapter.class] cannot be opened because it does not exist

springboot项目引入工作流activiti启动报错

解决方式:

2.0的start中默认也有一个spring-boot-autoconfigure-2.0..RELEASE.jar,如果你还引用了activiti的activiti-spring-boot-starter-rest-api.jar包,需要将两个包中的 SecurityAutoConfiguration.class 都排除,

@SpringBootApplication(exclude={
  org.activiti.spring.boot.SecurityAutoConfiguration.class,
  SecurityAutoConfiguration.class
})

 

你可能感兴趣的:(JavaWeb)