编程中遇到的BUG
node to traverse cannot be null!
遇到这个错误就是去查询sql语句是否书写正确。
java.lang.IllegalArgumentException: node to traverse cannot be null!
折腾了半天,后来发现是在使用HQL语句的时候 将关键字from 误写成了form
>.<!!! 晕死!
Exception in thread "main" javax.persistence.PersistenceException: No Persistence provider for EntityManager named
**解决办法:**将需要的lib添加到classpath中 缺少 hibernate-entitymanager.jar 补上这个jar包即可。