使用maven工程,进行整合SSH,报出异常

警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [sessionFactory.xml]: Invocation of init method failed; nested exception is java.lang.ArrayIndexOutOfBoundsException: -66
六月 28, 2017 3:31:29 下午 org.springframework.web.context.ContextLoader initWebApplicationContext
严重: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [sessionFactory.xml]: Invocation of init method failed; nested exception is java.lang.ArrayIndexOutOfBoundsException: -66

java.lang.ArrayIndexOutOfBoundsException: -66
初始化方法失败 数组下标越界

sessionFactory.xml配置文件中的bean:sessionFactory传参数估计有问题吧。

数组越界了,是你某个数组的下标大于数组的长度造成的

我找到答案了,问题应该是一直报jar包冲突问题,但是我使用了注解版的乐观锁,所以一直不行。