maxActive
The maximum number of active connections that can be allocated from this pool at the same time, or zero for no limit.
理解:同一時(shí)間能夠從池中獲取的最大的活動(dòng)鏈接數(shù)。(也就是一個(gè)池的最大并發(fā)量),為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.
理解:能夠在池中保存的處于空閑狀態(tài)的活動(dòng)鏈接的最大數(shù)目。前提是沒有額外的鏈接被釋放。(也就是說(shuō)沒有他的使用中的鏈接被釋放的情況下,連接池中保存的最大空閑鏈接數(shù))為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.
當(dāng)沒有可以使用的數(shù)據(jù)庫(kù)鏈接的時(shí)候,連接池將要等待一個(gè)鏈接被返回的最長(zhǎng)時(shí)間(毫秒),超過(guò)這個(gè)時(shí)間就要拋出異常。-1表示不受限制。