<Resource name="jdbc/ccc" auth="Container"
type="javax.sql.DataSource" driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://127.0.0.1:5432/sgm"
username="postgres" password="ppp" maxActive="20" maxIdle="10" maxWait="-1" validationQuery = "select 1" testOnBorrow = "true"/>
注意:其中的validationQuery,和testOnBorrow,即是在连接的时候对连接池的有效性进行检测。