Adia
V2EX  ›  Java

org.hibernate.HibernateException: Provider is closed! 一般都由什么情况引起?

  •  
  •   Adia · Mar 8, 2017 · 2476 views
    This topic created in 3362 days ago, the information mentioned may be changed or developed.
    搜索了一下好像也没给出什么结果,大家有碰到过吗?
    1 replies    2017-03-08 17:13:46 +08:00
    letitbesqzr
        1
    letitbesqzr  
       Mar 8, 2017   ❤️ 1
    ```java
    public Connection getConnection() throws SQLException {
    if ( !available ) {
    throw new HibernateException( "Provider is closed!" );
    }
    return useCredentials ? dataSource.getConnection( user, pass ) : dataSource.getConnection();
    }

    ```
    数据库连接被关掉了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2830 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 13:31 · PVG 21:31 · LAX 06:31 · JFK 09:31
    ♥ Do have faith in what you're doing.