Tomcat 7.0 JDBC Connection Pool 帳號密碼加密
環境:Tomcat 7.0.40 使用Tomcat自帶的conncetion pool 1.於content.xml 加入 JNDI 設定 Tomcat安裝目錄 / conf / content.xml <Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource" factory="TomcatDataSourceFactory" //繼承org.apache.tomcat.jdbc.pool.DataSourceFactory並改寫帳號及密碼加解密 testWhileIdle="true" testOnBorrow="true" testOnReturn="false" validationQuery="SELECT 1" validationInterval="30000" timeBetweenEvictionRunsMillis="30000" ...