码上敲享录 > activiti问题详解 > nested exception is java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionPro

nested exception is java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionPro

上一章章节目录下一章 2019-11-16已有4532人阅读 评论(0)

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)



2

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交