Hibernate无法在tomcat上加载应用程序,因为它使用JDK 1.4
我刚刚在我的tomcat服务器目录中部署了一个app.war文件。 当服务器启动时,上下文初始化失败,出现以下exception: [ERROR] 2015-10-08 04:01:56,946 org.springframework.web.context.ContextLoader – Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateDAO' defined in ServletContext resource [/WEB-INF/hibernate-persistance.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [cz.techsys.web.server.services.hibernatepersistance.HibernateDAO]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems: Syntax error, annotations are only available if source level […]