我在我的web应用程序中使用hibernate,当我得到异常时:它偶尔会出现异常,我在捕获异常时重新加载SessionFactoryorg.hibernate.exception.JDBCConnectionException: Cannot open connection
at org.hibernate.exception.SQLStateConverter.convertat org.hibernate.jdbc.
Web服务在本地连接到DB,而我希望web模块实例连接到web服务实例DB。两者在Tomcat中都有一个以MySQL作为数据库的Java- Hibernate堆栈。web模块的hibernate配置如下:
<property name="connection.url">jdbc:mysql://<web service server ip>:3306/<db name</pr