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
})