在写上篇文章<spring整合springmvc和hibernate>的时候,曾遇到一个问题 INFO: Server startup in 8102 ms Hibernate: insert into t_user (name, password) values (?, ?) Mar 31, 2018 5:47:19 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for se…
参考:http://stackoverflow.com/questions/6611437/how-to-make-hibernate-not-drop-tables 我遇到的问题就是: List l = sess.createCriteria(News.class) .add( Restrictions.isNotEmpty("title")) .list(); 抛出异常,Exception in thread "main" org.hibernate.Mappi…