mysql) 一切正常,后来把项目发布到腾讯云服务器上面的tomcat,(腾讯云上的tomcat就是我本地用的tomcat版本) 启动报错:
Caused by: org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException(AbstractPlatformT
using (ISession session = NHibernateHelper.GetSession()) using (var transactionsession.BeginTransaction()) session.SaveOrUpdate(item);
transaction.Commit