nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activityDAOImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.hibernate.SessionFactory base.BaseDAOImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [vfs:/C:/Windows/System32/content/ShaoMai-0.0.1-SNAPSHOT.war/WEB-INF/classes/spring-hibernate.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: javax.persistence.Table.indexes()[Ljavax/persistence/Index;
there is already javax.persistence.Table.class in my war file,
My project is build wiht spring4、hibernate4 & mysql