一、描述
springboot集成好Activiti6 后,启动报错:
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
二、解决方案
2.1 法一:
集成secrity的jar,引入权限框架,并在配置文件配置好yml文件即可。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
<optional>true</optional>
</dependency>
但是此方法必须要使用固定的权限框架,因为activiti默认就引用这个。
2.2 法二:
直接在启动文件上配置好:
@SpringBootApplication(exclude = SecurityAutoConfiguration.class)
@SpringBootApplication(exclude = SecurityAutoConfiguration.class)
@MapperScan("net.cnki.mapper")
public class ActiviotiBoot6Application {
public static void main(String[] args) {
SpringApplication.run(ActiviotiBoot6Application.class, args);
}
}