问题:
错误提示:org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection
java.sql.SQLException: Connections could not be acquired from the underlying database!
解决方法:
运行前检查:applicationContext.xml命名是否错误,数据库名是否错误,实体类与表是否对应,表名是否写错