1
java.lang.ArrayStoreException:sun.reflect.annotation.TypeNotPresentExceptionProxy

参考

1
https://stackoverflow.com/questions/24352967/spring-boot-errorjava-lang-arraystoreexception-sun-reflect-annotation-typenotp

解决思路

解决方案可能会根据实际的不兼容根本原因而有所不同。如何调查此类问题的最佳方法是遵循以下路线:

1
Caused by: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy

并将断点放入类’TypeNotPresentExceptionProxy’的构造函数中(只有一个)。

在调试模式下执行后,您应该看到究竟是什么错误,并根据您的发现,您可以决定要做什么(添加依赖项,排除自动配置,…)

在我的具体情况下,断点揭示了这一点:

1
java.lang.ClassNotFoundException: org.springframework.integration.config.IntegrationManagementConfigurer

作为解决方案,我决定像这样排除“IntegrationAutoConfiguration”:

1
@SpringBootApplication(exclude = IntegrationAutoConfiguration.class)