本地跑代码没有任何问题,挂到服务器上就出现数组越界异常,导致程序崩溃为什么啊

[11:19:00:156] [ERROR] - org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:312) - Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [/soft/apache-tomcat-8.5.57/webapps/rap/WEB-INF/classes/com/hongcan/homepageupd/inteface/homepageinterface.class]; nested exception is java.lang.ArrayIndexOutOfBoundsException: 288913

网上说,是spring3兼容jdk1.7,spring4才兼容jdk1.8,把编译时的jdk设置成1.7可以解决

两篇文章你参考下

https://blog.csdn.net/qq_39928755/article/details/107070941

https://blog.csdn.net/a18716374124/article/details/79147875