1
letitbesqzr 2017-03-08 17:13:46 +08:00 1
```java
public Connection getConnection() throws SQLException { if ( !available ) { throw new HibernateException( "Provider is closed!" ); } return useCredentials ? dataSource.getConnection( user, pass ) : dataSource.getConnection(); } ``` 数据库连接被关掉了 |