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>