maxActive
The maximum number of active connections that can be allocated from this pool at the same time, or zero for no limit.
理解:同一時間能夠從池中獲取的最大的活動鏈接數。(也就是一個池的最大并發量),為0表示不限制。
maxIdle
The maximum number of active connections that can remain idle in the pool, without extra ones being released, or zero for no limit.
理解:能夠在池中保存的處于空閑狀態的活動鏈接的最大數目。前提是沒有額外的鏈接被釋放。(也就是說沒有他的使用中的鏈接被釋放的情況下,連接池中保存的最大空閑鏈接數)為0表示不限制。
maxWait
The maximum number of milliseconds that the pool will wait (when there are no available connections) for a connection to be returned before throwing an exception, or -1 to wait indefinitely.
當沒有可以使用的數據庫鏈接的時候,連接池將要等待一個鏈接被返回的最長時間(毫秒),超過這個時間就要拋出異常。-1表示不受限制。