一个关于 org.hibernate.LockMode类的问题
我对数据库做了一些修改,然后也做了相应的映射,但是运行后报错
严重:
Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'travelExpenseManager' defined in ServletContext resource [/WEB-INF/spring/applicationContextBeans-config.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cuc.account.manager.TravelExpenseManangerImpl]: Constructor threw exception; nested exception is
java.lang.Error: Unresolved compilation problem:
The type org.hibernate.LockMode
cannot be resolved. It is indirectly referenced from required .class files
在网上查了一下说是Hibernate.jar没有引用进来,但这怎么可能,我之前可以正常运行啊,请问这可能是什么原因啊
------解决方案--------------------
你把TOMCAT里的缓存清一下,再试试。