解决EntryManagementBean的注入问题
Error creating bean with name 'entityManagerFactory' defined in class path resource : Invocation of init method failed
Caused by: java.lang.ClassNotFoundException: org.codehaus.stax2.ri.Stax2EventFactoryImpl
我是引入依赖 stax2-api :面向流的拉式解析XML,速度快、占用资源少,非常合适处理大数据量的xml文件
<dependency>
<groupId>org.codehaus.woodstox</groupId>
<artifactId>stax2-api</artifactId>
<version>4.2.1</version>
</dependency>