nested exception is java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
解决方法:
springboot启动时以下错误报错,原因是项目启动初始化时springboot创建了SecurityAutoConfiguration对象,但activiti也创建SecurityAutoConfiguration对象
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource
[org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]:
Invocation of init method failed; nested exception is java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
解决方法就是在sprongboot启动类上排除activiti的SecurityAutoConfiguration对象:@SpringBootApplication( exclude = SecurityAutoConfiguration.class)