HTTP Status 500 - Could not open Hibernate Session for transaction; nested exception is
HTTP Status 500 - Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Could not open connection
出现这种连接不上数据库的错误,习惯性的先检查一下数据库连接,是否写错。
我把jdbc:mysql://ip地址:3306/ocean 冒号写成中文的了,改成英文的即可。