V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Adia
V2EX  ›  Java

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

  •  
  •   Adia · Mar 8, 2017 · 2439 views
    This topic created in 3346 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   ·   1164 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 23:09 · PVG 07:09 · LAX 16:09 · JFK 19:09
    ♥ Do have faith in what you're doing.