Caused by:org.hibernate.HibernateException:Unable to make JDBC Connection

1、错误描述

Caused by:org.hibernate.HibernateException:Unable to make JDBC Connection[jdbc:mysql://localhost:3306/school]


2、错误原因

在hibernate.cfg.xml中配置数据库路径时

<property name="connection.url">

jdbc:mysql://localhost:3306/school

</property>


3、解决办法

将上述配置修改成

<property name="connection.url">

jdbc:mysql://localhost:3306/school

</property>


原文地址:https://www.cnblogs.com/hzcya1995/p/13314643.html