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

北城以北 提交于 2019-12-04 07:34:21

It happened for me when I used Spring Configuration annotation like this:

@Configuration
@Import({ Config.class })
public class WebConfig extends WebMvcConfigurerAdapter
{
   ...
}

When I renamed Config.class to CoreConfig.class the error occurred when starting jetty. this happened because the CoreConfig.class was in a different sub module of my maven project, so jetty couldn't see it (as it resolves dependencies through mvn local repository).

After calling 'mvn install' everything was fine again.

So this might not exactly your problem but it might help you. As your problem can be a packaging problem. Some class is not on the classpath maybe.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!