Adia
V2EX  ›  Java

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

  •  
  •   Adia · Mar 8, 2017 · 2486 views
    This topic created in 3365 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   ·   953 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 355ms · UTC 20:06 · PVG 04:06 · LAX 13:06 · JFK 16:06
    ♥ Do have faith in what you're doing.