hibernate connection pool

前端 未结 2 1662
温柔的废话
温柔的废话 2020-12-02 09:32

I can\'t seem to get hibernate to use c3p0 for connection pooling, it says

12:30:35,038  INFO DriverManagerConnectionProvider:64 - Using Hibernate built-in c         


        
2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-02 09:56

    
    
        
    
            
            jdbc:mysql://localhost:3306/db?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true
            org.hibernate.dialect.MySQL5InnoDBDialect
            com.mysql.jdbc.Driver
    
            user
            pass
    
            
            org.hibernate.connection.C3P0ConnectionProvider        
            1
            60
            1
            2
            50
            0
            1
            250
    
            true
            true
    
            org.hibernate.transaction.JDBCTransactionFactory
            thread
    
            ...
    
        
    
    

提交回复
热议问题