解决org.hibernate.HibernateException: No CurrentSessionContext configured! 已经配置了数据库方言,还是报错。 原来是没有添加current_session_context_class